Skip to content
Open the portal
Developer docs

Switch Workspace

POST
/v1/auth/switch
curl --request POST \
--url https://example.com/v1/auth/switch \
--header 'Content-Type: application/json' \
--data '{ "tenant_id": "example" }'

Act in another workspace this person belongs to. The session remembers the choice.

Media typeapplication/json
SwitchIn
object
tenant_id
required
Tenant Id
string
Examplegenerated
{
"tenant_id": "example"
}

Successful Response

Media typeapplication/json
Response Switch Workspace V1 Auth Switch Post
object
key
additional properties
any
Examplegenerated
{}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}