POST api/branchlocations/drivers

Request Information

URI Parameters

None.

Body Parameters

DriverLocationBindingModel
NameDescriptionTypeAdditional information
JobId

integer

Required

DriverId

integer

Required

Lat

decimal number

Required

Lon

decimal number

Required

Request Formats

application/json, text/json

Sample:
{
  "JobId": 1,
  "DriverId": 2,
  "Lat": 3.1,
  "Lon": 4.1
}

application/xml, text/xml

Sample:
<DriverLocationBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ethoz.Models.BindingModels">
  <DriverId>2</DriverId>
  <JobId>1</JobId>
  <Lat>3.1</Lat>
  <Lon>4.1</Lon>
</DriverLocationBindingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.