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

NameDescriptionAdditional 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

Sample:
{
  "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

Sample:
{
  "Id": "03fb553b-e2e6-4cba-84f5-8e61876c7b6f",
  "Name": "sample string 2",
  "Username": "sample string 3",
  "Role": "sample string 4",
  "Credentials": [
    {
      "Id": "18e1005a-bbdb-417d-ba63-5441272c76a3",
      "Enabled": true,
      "Created": "2024-05-01T21:50:10.6413506+00:00"
    },
    {
      "Id": "18e1005a-bbdb-417d-ba63-5441272c76a3",
      "Enabled": true,
      "Created": "2024-05-01T21:50:10.6413506+00:00"
    },
    {
      "Id": "18e1005a-bbdb-417d-ba63-5441272c76a3",
      "Enabled": true,
      "Created": "2024-05-01T21:50:10.6413506+00:00"
    }
  ],
  "Enabled": true,
  "Created": "2024-05-01T21:50:10.6413506+00:00"
}