POST v2/api/users/{id}/password
Updates the password of the specified Interactive User to another valid password. This API call can be made by either the Administrator who created the target user or the target user themselves.
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
id | The identifier of the target user. |
Define this parameter in the request URI. |
newPassword | The new password. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
{ "Password": "sample string 1" }
Response Information
The newly updated Interactive User with their API Credentials is returned. This endpoint can only be called by neither the Administrator who created the target user or the target user themselves, otherwise a 403:Forbidden is returned. The user's password at be at least 5 characters long with at least one capital letter, otherwise a 400:BadRequest is returned. If the target user is disabled a 400:BadRequest is returned.
Response body formats
application/json, text/json
{ "Id": "9204698c-57cb-4a2d-aa1e-2e78832b8ac5", "Name": "sample string 2", "Username": "sample string 3", "Role": "sample string 4", "Credentials": [ { "Id": "b1335d01-f5a8-441d-84d9-693bdf7db564", "Enabled": true, "Created": "2024-11-21T09:50:28.6909561+00:00" }, { "Id": "b1335d01-f5a8-441d-84d9-693bdf7db564", "Enabled": true, "Created": "2024-11-21T09:50:28.6909561+00:00" }, { "Id": "b1335d01-f5a8-441d-84d9-693bdf7db564", "Enabled": true, "Created": "2024-11-21T09:50:28.6909561+00:00" } ], "Enabled": true, "Created": "2024-11-21T09:50:28.6909561+00:00" }