XentrDeveloper Docs
API ReferenceUsers

Set the active organization for this user (server-of-truth for which org the dashboard renders)

Validates that the user has an active membership in the target org before persisting. Xentr staff are allowed any org. Returns the refreshed profile payload so the client can apply it without a second round-trip.

PATCH
/api/users/me/current-organization
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X PATCH "https://api.xentr.ai/api/users/me/current-organization" \  -H "Content-Type: application/json" \  -d '{    "organizationId": "adf010ce-4443-4065-92f6-f73c06021177"  }'
Empty
Empty
Empty