Change User Password
PUT /api/v1/users/{userId}/change-password
Description
Change the password of a user.
Path Parameters
| Name | Type | Description |
|---|---|---|
userId | string | The ID of the user whose password is being changed (path) |
Request Body
- Content Type:
application/json
{
"oldPassword": "string",
"newPassword": "string",
"confirmPassword": "string"
}
Response Code: 200 - OK
Description
Password changed successfully.
Response Fields
The response does not contain any specific fields.
Method: PUT
>http://your-api-url/api/v1/users/{userId}/change-password
Headers
| Content-Type | Value |
|---|---|
| apiKey | {{apiKey}} |
Body
{
"oldPassword": "oldPass123",
"newPassword": "newPass123",
"confirmPassword": "newPass123"
}
🔑 Authentication bearer
| Param | Value | Type |
|---|---|---|
| token | {{accessCode}} | string |
LANGUAGE
CURL REQUEST
curl --request PUT \
--url /api/v1/users/{userId}/change-password \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!