Skip to main content
POST
/
api
/
v1
/
organisations
/
switch
Switch Organisation Endpoint
import requests

url = "https://platform.ankra.app/api/v1/organisations/switch"

payload = { "organisation_id": "<string>" }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
{
  "success": true,
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

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

Headers

authorization
string | null

Body

application/json
organisation_id
string<uuid4>
required

Response

Successful Response

success
boolean
required
message
string
required