Update group's handle service privileges
Updates group's ({gid}) privileges in a handle service ({id}).
This operation requires handle_service_update privilege.
For administrator who does not belong to this group
oz_handle_services_set_privileges privilege is required.
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 privileges in a handle service
curl -u username:password -X PATCH -H "Content-type: application/json" \
-d '{"grant": ["handle_service_register_handle"], "revoke": ["handle_service_update"]}' \
https://$HOST/api/v3/handle_services/$HANDLE_SERVICE_ID/groups/$GROUP_ID/privileges
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Handle service Id. |
| gid required | string Group Id. |
Request body
Handle service privileges update request.
| Property | Type & Description |
|---|---|
grant array of strings A list of privileges in the handle service. | |
revoke array of strings A list of privileges in the handle service. | |
Request Examples
{
"grant": [
"handle_service_update",
"handle_service_view"
],
"revoke": [
"handle_service_delete",
"handle_service_list_handles",
"handle_service_register_handle"
]
}Responses
The privileges have been updated.
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."
}
}