Skip to main content
POST
Switch user organisation

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null
x-ankra-organisation-id
string | null

Body

application/json
organisation_id
string<uuid4>
required

Target organisation ID to switch to

Example:

"550e8400-e29b-41d4-a716-446655440000"

Response

Organisation switched successfully

message
string
required

Response message

Example:

"User switched to organisation"

success
boolean
required

Whether the switch was successful

Example:

true