POST api/ChangePwd

Changes the password for the current user.

Request

Body

Content Type: application/xml or application/json
New password.

XML JSON
<Request>                              
  <NewPassword>string</NewPassword>    
</Request>                             
{                            
   "NewPassword": "string"   
}                            
                             

Response

Body

Content Type: application/xml or application/json
Value indicating success or an error message.

XML JSON
<Response>                     
  <Result>string</Result>      <!--'Success'--> 
  <Message>string</Message>    <!--Error message--> 
</Response>                    
{                         
   "Result": "string",    // 'Success'
   "Message": "string"    // Error message
}                         
                          

Status Codes

Code Condition
200 OKPassword was successfully changed.
400 Bad RequestMissing/invalid password.
401 Unauthorized Access token is invalid, expired or not specified.
406 Not Acceptable Content type specified in the Accept header isn't supported.
500 Internal Server Error An internal error occurred.

Remarks

Passwords must be 6-20 characters long, cannot be empty and must not start or end with whitespace characters.