Create child group
Creates a new child group belonging to the group of {id}.
This operation requires group_add_child privilege.
For administrator who does not belong to this group
oz_groups_add_relationships and oz_groups_create
privileges are required.
Example cURL requests
Create child group
curl -u username:password -X POST \
https://$HOST/api/v3/onezone/groups/$GROUP_ID/children
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Group Id. |
Request body
Group properties.
| Property | Type & Description |
|---|---|
name string The name of the group. | |
type string The type of the group. If not specified, Enum: organizationunitteamrole_holders | |
Request Examples
{
"name": "Test group",
"type": "team"
}Responses
URI of the added group in form https://$HOST/api/onezone/v3/groups/{id}/children/{cid} is returned in the response Location header.
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."
}
}