Modify group details
Updates the details about a group.
This operation requires group_update privilege.
For administrator who does not belong to this group
oz_groups_update privilege is required.
Example cURL requests
Modify group name
curl -u admin:password -H "Content-type: application/json" \
-X PATCH -d '{"name": "new_group_name"}' \
https://$HOST/api/v3/onezone/groups/$GROUP_ID
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Group Id. |
Request body
Group parameters
| Property | Type & Description |
|---|---|
name string The name of the group. | |
type string The type of the group. Enum: organizationunitteamrole_holders | |
Request Examples
{
"type": "unit"
}Responses
Group details modified.
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."
}
}