POST api/Auth/ChangePassword
Change the password for the User
Request Information
URI Parameters
None.
Body Parameters
ChangePasswordModelName | Description | Type | Additional information |
---|---|---|---|
UserName |
Must contain valid username |
string |
Required |
OldPassword |
Must contain valid current password for the user |
string |
Required |
NewPassword |
Must contain valid new password for the user |
string |
Required |
ConfirmPassword |
Must contain exactly the same password as NewPassword for the user |
string |
Required |
Request Formats
application/json, text/json
Sample:
{ "UserName": "sample string 1", "OldPassword": "sample string 2", "NewPassword": "sample string 3", "ConfirmPassword": "sample string 4" }
application/xml, text/xml
Sample:
<ChangePasswordModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RostarCASWebAPI.Models"> <ConfirmPassword>sample string 4</ConfirmPassword> <NewPassword>sample string 3</NewPassword> <OldPassword>sample string 2</OldPassword> <UserName>sample string 1</UserName> </ChangePasswordModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |