cURL
curl --request POST \ --url http://localhost:3000/api/canary/authentication/organization/set-active \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "organizationId": "org_12345" } '
{ "statusCode": 400, "message": [ "Invalid input data" ], "error": "Bad Request" }
Set the active organization for the current session
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The ID of the organization to set as active
"org_12345"
Active organization set successfully