Hard-delete a TEAM organisation
OWNER-only. Cascades projects → sessions → slices → events → tracked users. Personal Space deletion is rejected with `403`. Members whose `activeOrganizationId` pointed here are flipped to their Personal Space first.
/api/organizations/{orgId}OWNER-only. Cascades projects → sessions → slices → events → tracked users. Personal Space deletion is rejected with 403. Members whose activeOrganizationId pointed here are flipped to their Personal Space first.
Path Parameters
Organisation id (cuid)
Response Body
curl -X DELETE "https://loading/api/organizations/string"Edit org name and/or avatar PATCH
ADMIN+. `regenerateAvatar: true` rolls the DiceBear seed to a new UUID. Both fields optional; an empty body is a no-op `204`.
Switch the caller's active organisation PATCH
Persists `User.activeOrganizationId` (mirrored to JWT). Membership is verified inside the same transaction so the active-org pointer can never flip to an org the caller doesn't belong to.