User-Initiated Password Change

For authenticated users to change their password. The password of the user with the authentication token is changed.

Request
Security:
path Parameters
userId
required
string^[0-9]\d*$

The ID of user.

Example: 62
Request Body schema: application/json
currentPassword
required
string <password> (Password) >= 8 characters

The password must contain at least eight characters, including one upper-case letter, one lower-case letter, and one number. The password may consist of a combination of letters, numbers, and special characters.

newPassword
required
string <password> (Password) >= 8 characters

The password must contain at least eight characters, including one upper-case letter, one lower-case letter, and one number. The password may consist of a combination of letters, numbers, and special characters.

Responses
200

Successful operation

400

Bad request error

401

Unauthorized error

403

Forbidden error

404

Not found error

500

Internal server error

post/users/{userId}/change-password
Request samples
application/json
{
  • "currentPassword": "123Abcd!",
  • "newPassword": "123Abcd!"
}
Response samples
application/json
{
  • "requestId": "df5fg-45fgfdsg-45fg-45454"
}