Skip to main content
POST
/
sessions
/
switch-organization
Switch organization for current session
curl --request POST \
  --url https://auth.platform.arb.inc/sessions/switch-organization \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "organizationId": "af21b50b-90ee-461d-9a84-5a152f65af3b"
}
'
"session organization successfully switched; please refresh the session"

Authorizations

Authorization
string
header
required

access token

Body

application/json
organizationId
string

The ID of the organization to switch to. If omitted or empty, the session organization will be cleared.

Example:

"af21b50b-90ee-461d-9a84-5a152f65af3b"

Response

Organization successfully switched for the session.

The response is of type string.

Example:

"session organization successfully switched; please refresh the session"