Update group's admin privileges
Updates group's ({id}) admin privileges in Onezone.
This operation requires oz_set_privileges admin privilege.
The grant field specifies a list of privileges to be granted. The revoke
field specifies a list of privileges to be revoked. At least one of those
fields must be given.
Example cURL requests
Update group's admin privileges in Onezone
curl -H "Content-type: application/json" -X PATCH \
-d '{"grant": ["oz_spaces_list"], "revoke": ["oz_groups_update"]}' \
https://$ZONE_HOST/api/v3/onezone/groups/$GROUP_ID/privileges
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Group Id. |
Request body
admin privileges update request.
A list of admin privileges in Onezone.
A list of admin privileges in Onezone.
Request Examples
{
"grant": [
"oz_groups_add_relationships",
"oz_groups_remove_relationships",
"oz_groups_view_privileges",
"oz_groups_set_privileges",
"oz_groups_list",
"oz_groups_view",
"oz_groups_list_relationships",
"oz_spaces_create",
"oz_spaces_update"
],
"revoke": [
"oz_providers_list",
"oz_providers_view",
"oz_providers_update",
"oz_providers_delete",
"oz_providers_invite",
"oz_providers_list_relationships",
"oz_handle_services_create"
]
}Responses
The privileges have been updated.
Invalid request.
error object 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."
}
}Authentication error.
error object 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."
}
}Authorization error.
error object 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."
}
}Resource not found.
error object 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."
}
}Internal server Error.
error object 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."
}
}