Set password for Onezone user
Sets a new password for a Onezone user using Basic authentication.
Example cURL requests
Set Onezone user password
curl -H "X-Auth-Token: $TOKEN" -X PATCH https://$OZ_PANEL_HOST/api/v3/onepanel/zone/users/$USER_ID \
-H "Content-Type: application/json" -d '{"newPassword": "someNewPassword"}'
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Id of the user whose password is changed. |
Request body
The new user password.
Request Examples
{
"newPassword": "P@@$$W0RD2"
}Responses
The user password has been successfully changed.
Invalid request.
error object (ErrorDetails) Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
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.
error object (ErrorDetails) Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}