POST api/mobile/updatedriver

Update a driver's details

Request Information

URI Parameters

None.

Body Parameters

UpdateDriverRequest
NameDescriptionTypeAdditional information
Token

The token returned after login used for authentication

string

None.

DriverId

The driver id returned after login used for authentication

unsigned integer

None.

DriverName

The new driver name

string

None.

DriverTelephoneNumber

The new drivers telephone number

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Token": "sample string 1",
  "DriverId": 2,
  "DriverName": "sample string 3",
  "DriverTelephoneNumber": "sample string 4"
}

application/xml, text/xml

Sample:
<UpdateDriverRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Token>sample string 1</Token>
  <DriverId>2</DriverId>
  <DriverName>sample string 3</DriverName>
  <DriverTelephoneNumber>sample string 4</DriverTelephoneNumber>
</UpdateDriverRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.