POST api/mobile/userpasswordreset
Reset a password
Request Information
URI Parameters
None.
Body Parameters
UserPasswordResetRequest
UserPasswordResetRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Token |
The token returned after login used for authentication |
string |
None. |
| UserID |
The user id returned after login used for authentication |
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",
"UserID": 2,
"OldPassword": "sample string 3",
"NewPassword": "sample string 4"
}
application/xml, text/xml
Sample:
<UserPasswordResetRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Token>sample string 1</Token> <UserID>2</UserID> <OldPassword>sample string 3</OldPassword> <NewPassword>sample string 4</NewPassword> </UserPasswordResetRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
UserPasswordResetRequestResponse
UserPasswordResetRequestResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Result |
Will be true if password reset was accepted |
boolean |
None. |
| ErrorCode |
Any errors which may have occurred |
WebserviceErrorCode |
None. |
Response Formats
application/json, text/json
Sample:
{
"Result": true,
"ErrorCode": 0
}
application/xml, text/xml
Sample:
<UserPasswordResetRequestResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Result>true</Result> <ErrorCode>None</ErrorCode> </UserPasswordResetRequestResponse>