Skip to main content
PUT
/
users
/
passwords
Change password.
curl --request PUT \
  --url https://lab.trustos.telefonicatech.com/id/v2/users/passwords \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "currentPassword": "current_password",
  "newPassword": "new_password"
}'
{
  "statusCode": 200,
  "message": "Password updated",
  "data": "Password changed successfully for user did:user:<id>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Data needed to change password.

currentPassword
string
required

The user's current password.

Example:

"current_password"

newPassword
string
required

The user's new password.

Example:

"new_password"

Response

Successful password update.

statusCode
number

Request status code.

Example:

200

message
string

Message returned by the request.

Example:

"Password updated"

data
string

Data returned by the request.

Example:

"Password changed successfully for user did:user:<id>"

I