Documentation > Access API > AuthController > accessapi/Auth/UpdatePassword
accessapi/Auth/UpdatePassword
Given a valid username and old password, it changes the password to the new password. If there is an error, it will be returned in the error message.
POST
https://cms.crownpeak.com/[Your Instance]/cpt_webservice/accessapi/Auth/UpdatePasswordRequest Information
URI Parameters
None.
Body Parameters
The parameters sent as post data.
AuthUpdatePasswordRequest
| Name | Description | Type |
|---|---|---|
| newPassword | System.String | |
| oldPassword | System.String | |
| username | System.String |
Request Formats
application/json
Sample:
{
"username": "username",
"oldPassword": "oldPassword",
"newPassword": "newPassword",
}
Response Information
Resource Description
AuthUpdatePasswordResponse
| Name | Description | Type |
|---|---|---|
| ResultCode | eResultCodes | |
| ErrorMessage | System.String | |
| InternalCode | System.Int32 | |
| IsSuccessful | System.Boolean |
Response Formats
application/json
Sample:
{
"resultCode": "conWS_Success",
"errorMessage": "",
"internalCode": 0
}