Appearance
changePassword ​
Changes an existing user's password given a valid existing password and new passwords.
Request ​
http
POST /rest/user/passwordHeaders ​
| Header | Required | Description |
|---|---|---|
x-nextinteract-authtoken | Yes | Auth token returned from loginUser |
Parameters ​
A JSON request in format below. All fields mandatory. Only version 1 supported as of 2016-07-12.
json
{
"version": 1,
"existingPassword": "pa55word",
"newPassword": "changedPassword",
"newPasswordConfirm": "changedPassword",
"uEmail": "aaron.mcmullen@hypermedia.com.au",
"appCode": "MY"
}Response ​
200 OK ​
JSON response:
json
{
"errorCode": 0,
"errorMsg": "User password change successful."
}Errors ​
| Exception | Description |
|---|---|
WSUserServiceUnavailableException | See Error Definitions |
WSInvalidParameterException | See Error Definitions |
WSEmailNotFoundException | See Error Definitions |
WSUserInvalidPasswordException | See Error Definitions |
WSPasswordMismatchException | See Error Definitions |
WSPasswordLengthException | See Error Definitions |
WSInvalidAuthTokenException | See Error Definitions |
WSUserServiceException | See Error Definitions |
WSCacheServiceException | See Error Definitions |
WSInvalidPasswordResetException | See Error Definitions |