Resource: User Password ( /api/user/{id}/password )
Allows the setting of a password for a user.
This resource supports the following methods: PUT
Methods
PUT
Sets or updates the password for a user (you do not require any permissions to set the password for the currently authenticated user)
Required Permissions
- Administration/Organisation/ManageUserAndGroupSecurity
Status Codes
These are the expected status codes returned by the service. In addition, some other status codes may be returned if either an internal error occurs or there is an authentication issue (such as an expired OAuth token).
Status | Description |
---|---|
200 - OK | Returned if the request was completed successfully. |
403 - Forbidden | Returned if password did not meet complexity requirements, or you do not have permission to update the password for this user. |
404 - NotFound | Returned if user does not exists. |
Example - Set password
Set password for a user to 'Password123'
Request Headers
Key | Value | Description |
---|---|---|
Accept | application/json |
Request Parameters
Key | Value | Description |
---|---|---|
{id} | D23CFEE1-7294-4DAE-ACD0-248DCD6E4863 | ID of the user to set password for |
Request Body
{ "Password": "Password123" }
Response Headers
Key | Value | Description |
---|---|---|
Content-Type | application/json; charset=utf-8 |
Status Code
200 - OK