{
"tenant_id": "550e8400-e29b-41d4-a716-446655440000"
}
{
"success": true,
"message": "Tenant switched successfully",
"tenant": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "My Organization"
}
}
Tenant Management
Switch Tenant
POST
/
api
/
tenants
/
switch
/
{
"tenant_id": "550e8400-e29b-41d4-a716-446655440000"
}
{
"success": true,
"message": "Tenant switched successfully",
"tenant": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "My Organization"
}
}
Switch to a different tenant (organization).
string
required
Tenant ID to switch to
Request Example
{
"tenant_id": "550e8400-e29b-41d4-a716-446655440000"
}
Success Response (200)
boolean
Operation success status
string
Success message
object
Switched tenant object
{
"success": true,
"message": "Tenant switched successfully",
"tenant": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "My Organization"
}
}