Switch Tenant
Switch the caller’s active tenant.
Marks tenant_id as the caller’s active tenant on the server side. The current
JWT is NOT rotated — the caller must refresh their access token after this call
before subsequent requests will be scoped to the new tenant. Returns
204 No Content on success.
The caller can only switch into tenants they belong to; other targets return 403.
POST
/auth/switch-tenantAuthorization
AuthorizationBearer token · headerrequiredRequest body
requiredapplication/jsontenant_idstringrequiredmin length 1
Responses
204
Successful Response
422
Validation Error
detailValidationError[]Show propertiesHide properties
Array of
ValidationErrorlocstring | integer[]requiredShow propertiesHide properties
Array of
string | integerAny of:
string
stringinteger
integermsgstringrequiredtypestringrequiredinputanyctxobject