# Set the active organization for this user (server-of-truth for which org the dashboard renders) (/docs/api-reference/users/UsersController_setCurrentOrganization)

`PATCH /api/users/me/current-organization`

Base URL: https://api.xentr.ai

Authentication: bearer token (`Authorization: Bearer <token>`).

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.

## Request body

Required.

Content type: `application/json`

```json
{
  "type": "object",
  "properties": {
    "organizationId": {
      "type": "string",
      "description": "UUID of the organization to become the user's active context. Must be an org the user has an active membership in (Xentr staff are allowed any org).",
      "example": "adf010ce-4443-4065-92f6-f73c06021177"
    }
  },
  "required": [
    "organizationId"
  ]
}
```

## Responses

### 200: Active organization updated

### 403: Not a member of the target org

### 404: Profile or organization not found