Set password for Onezone user
Sets a new password for a Onezone user using Basic authentication.
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Id of the user whose password is changed. |
Request body
| Property | Type & Description |
|---|---|
newPassword string The new user password. | |
Request Examples
{
"newPassword": "P@@$$W0RD2"
}Responses
The user password has been successfully changed.
Invalid request.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Unauthorized request.
Forbidden request.
The user does not exist.
Internal server error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}