Switch the active tenant of the authenticated session
POST/api/session/tenant
Re-points the authenticated session at another tenant the SAME account belongs to (the sidebar switcher). Requires an existing session. The account must have an active membership for the target tenant, otherwise 403.
Request
Responses
- 200
- 401
- 403
- 422
Now authenticated as the target tenant's user.
Not authenticated. code: account_disabled means the member's seat was deactivated in this workspace: the session is over even though the token was not revoked (clients sign out and clean up).
The account is not a member of the requested tenant.
The request failed validation.