Openapi
Store the preferred active organization on the current user's profile. This helps clients choose a default organization when no explicit organization id is supplied on a request, but it does not replace per-request membership checks or authorization.
sb-auth-token<token>Supabase browser session cookie. Supabase may split larger session values into chunked cookies like sb-auth-token.0.
The organization to mark as the preferred active organization.
application/jsonorganizationId*organizationIdSchemauuidReturns a success payload when the active organization preference is updated.
application/jsonsuccess*truetruecurl -X PATCH 'https://app.localhost/api/v1/users/me/active-organization' \ -H 'Content-Type: application/json' \ -d '{ "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9"}'{ "success": true}