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/admin/orgs/org-c/orgs', the caller must be an
admin in org-a
, org-b
, or org-c
.
Also, adminsCanCreateOrgsInSubtree
must be true
in that same organization.
A request to create an organization.
A successfully created organization
Creation forbidden: The caller is not allowed to create sub-organizations.
{- "id": "my-org",
- "migrationStatus": "EXCLUSIVE_LOGIN",
- "adminGroupId": "my-external-group",
- "adminsCanCreateOrgsInSubtree": false,
- "adminsCanCreateProjectsInSubtree": false,
- "allowedClusters": [
- "westeurope-1",
- "asia-northeast1-1"
]
}
{- "id": "my-org",
- "parentId": "my-org",
- "migrationStatus": "EXCLUSIVE_LOGIN",
- "adminGroupId": "my-external-group",
- "isDeleted": false,
- "adminsCanCreateOrgsInSubtree": false,
- "adminsCanCreateProjectsInSubtree": false,
- "allowedClusters": [
- "westeurope-1",
- "asia-northeast1-1"
], - "profilesEnabled": true
}