Dozor
Organizations

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.

PATCH/api/organizations/active

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.

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"  }'
Empty
Empty
Empty
Empty