Switch the active organization
POST/organizations/:organization_id/switch
Sets the authenticated user's currentOrganizationId to the given organization. The body is empty. The caller must be a member of the target organization; non-members and non-existent organizations both return 404 (to prevent ID enumeration).
This is the call that scopes a user's subsequent platform work to a specific organization — for client-managed/org-client users it is what makes organization-scoped resource access (e.g. running workflows) resolve against the intended organization.
Request
Responses
- 200
- 400
- 401
- 404
The now-active organization
Invalid organization ID format
Caller is not a member of the organization
Organization not found or not visible to the caller