cURL
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>" }
Changes the password of the user.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Data needed to change password.
The user's current password.
"current_password"
The user's new password.
"new_password"
Successful password update.
Request status code.
200
Message returned by the request.
"Password updated"
Data returned by the request.
"Password changed successfully for user did:user:<id>"
Was this page helpful?