Skip to main content
PUT
/
user
/
{id}
/
credentials
Update Credentials
curl --request PUT \
  --url http://{host}:{port}/{contextPath}/user/{id}/credentials \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "password": "s3cr3t",
  "authenticatedUserPassword": "demo"
}'
This response does not have an example.

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

The id of the user to be updated.

Body

application/json
password
string | null

The users new password.

authenticatedUserPassword
string | null

The password of the authenticated user who changes the password of the user (i.e., the user with passed id as path parameter).

Response

Request successful. This method returns no content.