Change Password
This request changes the password of a user.
Endpoints
- PUT /users/{userID}/password
Url
- userID
-
The ID of the user
Header
- Authorization
-
Bearer {token} (User authorization needed)
Body
- JSON
-
A JSON object with the settings
see format in the example below
Response
A JSON object with the ID of the user
see format in the example below
Example request
PUT https://api.paramate.trinckle.com/users/e14390b7-c874-41d8-a65e-6d9de482a336
-H Authorization: Bearer eyJhbGciOiJIUzI1Ni ... 3H8gC1k2DIKNEeJpb72yvmdY
-H Content-Type: application/json
{
"oldPassword": "t35tp@55w0rd",
"password": "n3wp@55w0rd"
}
Output
HTTP/1.1 200 OK
{
"UUID": "e14390b7-c874-41d8-a65e-6d9de482a336"
}