Switch the caller's active organisation
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.
/api/organizations/activePersists 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.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X PATCH "https://loading/api/organizations/active" \ -H "Content-Type: application/json" \ -d '{ "organizationId": "org_acme" }'Hard-delete a TEAM organisation DELETE
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.
List org members GET
VIEWER+ — every member sees the full roster. Role-change / remove are gated tighter on the `[memberId]` routes.