Remove a sub-organization
DELETE/v1/organizations/:org/sub-organizations/:sub
One with its own owner becomes a top-level organization: it keeps its data and pays for itself,
and members above it lose access at once. One without an owner is deleted instead, which needs
its integrations cancelled first (422 has_integrations) and its own sub-organizations removed
(422 has_sub_organizations); add an owner (POST /organizations/{sub}/members) to hand it over
rather than delete it. Returns the organization as it is afterwards.
Request
Responses
- 200
- 403
- 404
- 422
The organization, now top-level (no parent_org_id) or deleted
Your role does not allow this action
Not found, or not visible to you
Not possible in the current state