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/UpdatePassword


Request Information

URI Parameters

None.

Body Parameters

The parameters sent as post data.

AuthUpdatePasswordRequest

NameDescriptionType
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

NameDescriptionType
ResultCode

eResultCodes
ErrorMessage

System.String
InternalCode

System.Int32
IsSuccessful

System.Boolean

Response Formats

application/json

Sample:

            
            {
              "resultCode": "conWS_Success",
              "errorMessage": "",
              "internalCode": 0
            }
            
            

Connect with Crownpeak