Change Password by ID
patch
/user/changePassword/{id}
Changes the password for the given user.
Request
Path Parameters
Back to Top
Response
200 Response
The password was changed successfully.
Examples
This example shows how to update a user's password by submitting a PATCH request on the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X PATCH 'http://hostname:port/user/userpassword/4' -d @sampleUpdatePassword.json
Example of the Request Body
The following is an example of the contents of the sampleUpdatePassword.json file sent as the request body.
{
"oldPassword": "oldPass",
"newPassword": "newPass"
}
Example of the Response Body
If successful, the response code 200 is returned with the following response body.
{
"status": "SUCCESS"
}