Create a child organization under the specified organization.
Requires the caller to be an admin in the parent organization (i.e. the one on the path), or any of its ancestors.
In addition, the flag adminsCanCreateOrgsInSubtree
must be set to true
in that organization.
Example: Assume an organization hierarchy like: org-a
-> org-b
-> org-c
.
To create a new organization under org-c
, which means calling 'POST /api/v1/orgs/org-c/orgs', the caller must be an
admin in at least one of org-a
, org-b
, or org-c
, and adminsCanCreateOrgsInSubtree
must be true
in that same organization.
A successfully created organization
Creation forbidden: The caller is not allowed to create sub-organizations.
{- "items": [
- {
- "id": "my-org",
- "adminGroupId": "my-external-group",
- "adminsCanCreateOrgsInSubtree": false,
- "adminsCanCreateProjectsInSubtree": false,
- "allowedClusters": [
- "westeurope-1",
- "asia-northeast1-1"
]
}
]
}
{- "items": [
- {
- "id": "my-org",
- "parentId": "my-org",
- "adminGroupId": "my-external-group",
- "adminsCanCreateOrgsInSubtree": false,
- "adminsCanCreateProjectsInSubtree": false,
- "allowedClusters": [
- "westeurope-1",
- "asia-northeast1-1"
]
}
]
}