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
}
}Set the active organization for the current session
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
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the organization to set as active
"org_12345"
Active organization set successfully
Active organization set successfully
{ "success": true }