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": "69695bcb-1b40-4170-b958-e1a0914f0e59",
  "Name": "sample string 2",
  "Username": "sample string 3",
  "Role": "sample string 4",
  "Credentials": [
    {
      "Id": "dabec78c-bdeb-48c8-86c1-216e9d6cd84d",
      "Enabled": true,
      "Created": "2020-07-06T05:26:38.307325+00:00"
    },
    {
      "Id": "dabec78c-bdeb-48c8-86c1-216e9d6cd84d",
      "Enabled": true,
      "Created": "2020-07-06T05:26:38.307325+00:00"
    },
    {
      "Id": "dabec78c-bdeb-48c8-86c1-216e9d6cd84d",
      "Enabled": true,
      "Created": "2020-07-06T05:26:38.307325+00:00"
    }
  ],
  "Enabled": true,
  "Created": "2020-07-06T05:26:38.307325+00:00"
}