POST api/Account/ChangePassword?apiKey={apiKey}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
apiKey

string

Required

Body Parameters

ChangePasswordBindingModel
NameDescriptionTypeAdditional information
AspNetUserID

string

None.

OldPassword

string

Required

Data type: Password

NewPassword

string

Required

Data type: Password

String length: inclusive between 6 and 100

ConfirmPassword

string

Data type: Password

Request Formats

application/json, text/json

Sample:
{
  "AspNetUserID": "sample string 1",
  "OldPassword": "sample string 2",
  "NewPassword": "sample string 3",
  "ConfirmPassword": "sample string 4"
}

application/xml, text/xml

Sample:
<ChangePasswordBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fleetlet.Service.Models">
  <AspNetUserID>sample string 1</AspNetUserID>
  <ConfirmPassword>sample string 4</ConfirmPassword>
  <NewPassword>sample string 3</NewPassword>
  <OldPassword>sample string 2</OldPassword>
</ChangePasswordBindingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiResponse
NameDescriptionTypeAdditional information
Status

integer

None.

IsValid

boolean

None.

Message

string

None.

Code

string

None.

ID

globally unique identifier

None.

Errors

Collection of string

None.

ErrorCodes

Collection of ErrorCode

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 1,
  "IsValid": true,
  "Message": "sample string 3",
  "Code": "sample string 4",
  "ID": "98935d1d-8589-4263-9751-95796f80cae2",
  "Errors": [
    "sample string 1",
    "sample string 2"
  ],
  "ErrorCodes": [
    1,
    1
  ]
}

application/xml, text/xml

Sample:
<ApiResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fleetlet.Entity">
  <Code>sample string 4</Code>
  <ErrorCodes>
    <ErrorCode>Success</ErrorCode>
    <ErrorCode>Success</ErrorCode>
  </ErrorCodes>
  <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Errors>
  <ID>98935d1d-8589-4263-9751-95796f80cae2</ID>
  <IsValid>true</IsValid>
  <Message>sample string 3</Message>
  <Status>1</Status>
</ApiResponse>