POST api/mobile/driverpasswordreset

Reset a drivers password

Request Information

URI Parameters

None.

Body Parameters

The DriverPasswordResetModel

DriverPasswordResetModel
NameDescriptionTypeAdditional information
Token

The token returned after login used for authentication

string

None.

DriverId

The driver id returned after login used for authentication, this drivers journeys will be queried

unsigned integer

None.

OldPassword

The old password

string

None.

NewPassword

The new password

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Token": "sample string 1",
  "DriverId": 2,
  "OldPassword": "sample string 3",
  "NewPassword": "sample string 4"
}

application/xml, text/xml

Sample:
<DriverPasswordResetModel 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>
  <OldPassword>sample string 3</OldPassword>
  <NewPassword>sample string 4</NewPassword>
</DriverPasswordResetModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Bool if the password was changed successfully

DriverPasswordResetResponseModel
NameDescriptionTypeAdditional information
Result

boolean

None.

ErrorCode

WebserviceErrorCode

None.

Response Formats

application/json, text/json

Sample:
{
  "Result": true,
  "ErrorCode": 0
}

application/xml, text/xml

Sample:
<DriverPasswordResetResponseModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Result>true</Result>
  <ErrorCode>None</ErrorCode>
</DriverPasswordResetResponseModel>