Skip to main content
POST
/
api
/
canary
/
authentication
/
organization
/
set-active
Set Active Organization
curl --request POST \
  --url https://api.cashful.africa/api/canary/authentication/organization/set-active \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "organizationId": "org_12345"
}
'
{
  "success": {
    "success": true
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
organizationId
string
required

The ID of the organization to set as active

Example:

"org_12345"

Response

Active organization set successfully

success
boolean
required

Active organization set successfully

Example:
{ "success": true }