Change user's basic auth settings
Changes user's basic auth settings - the ability to authenticate with username & password, and/or the password itself.
This operation requires oz_users_manage_passwords admin privilege.
Example cURL requests
Change user's basic auth settings
curl -u admin:password -H "Content-type: application/json" -X PATCH \
-d '{"basicAuthEnabled": true, "newPassword": "password123"}' \
https://$HOST/api/v3/onezone/users/c5cb69ce45940468596ed16310a45e49/basic_auth
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string User Id. |
Request body
User basic auth settings update request.
| Property | Type & Description |
|---|---|
basicAuthEnabled boolean Toggles authentication with username & password for given user. | |
newPassword string New user's password to overwrite the old one. | |
Request Examples
{
"basicAuthEnabled": true,
"newPassword": "lS1c6FD2mxB2ff"
}Responses
User basic auth settings updated successfully.
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."
}
}Authentication 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."
}
}Authorization 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."
}
}Resource not found.
| 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."
}
}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."
}
}