POST api/Account/SetPassword
Change password
Request Information
URI Parameters
None.
Body Parameters
SetPasswordBindingModelName | Description | Type | Additional information |
---|---|---|---|
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:
{ "NewPassword": "sample string 1", "ConfirmPassword": "sample string 2" }
application/xml, text/xml
Sample:
<SetPasswordBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CSAeReader.API.eReaderAPI.Models"> <ConfirmPassword>sample string 2</ConfirmPassword> <NewPassword>sample string 1</NewPassword> </SetPasswordBindingModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiResultOfObjectName | Description | Type | Additional information |
---|---|---|---|
Errors | ErrorModel |
None. |
|
Result | Object |
None. |
|
IsSuccess | boolean |
None. |
|
StatusCode | HttpStatusCode |
None. |
Response Formats
application/json, text/json
Sample:
{ "Errors": { "ErrorsNumber": 1, "Messages": [ "sample string 1", "sample string 2" ], "MessagesString": "sample string 2" }, "Result": {}, "IsSuccess": false, "StatusCode": 100 }
application/xml, text/xml
Sample:
<ApiResultOfanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CSAeReader.Common.API"> <Errors> <ErrorsNumber>1</ErrorsNumber> <Messages xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:string>sample string 1</d3p1:string> <d3p1:string>sample string 2</d3p1:string> </Messages> <MessagesString>sample string 2</MessagesString> </Errors> <Result /> <StatusCode>Continue</StatusCode> </ApiResultOfanyType>