PATCH /api/v2/accounts/{customerId}/domain
Updates an account’s registered domain. The domain gates domain auto-join membership. Requires ADMIN role on the target account (direct membership, organization admin via the hierarchy, or SuperAdmin).
Request
curl
Parameters
| Field | In | Type | Required | Notes |
|---|---|---|---|---|
customerId | path | string | Yes | ID of the account to update |
customerDomain | body | string | Yes | Registered domain for the account (max 255, valid hostname pattern) |
Response
| Field | Type | Notes |
|---|---|---|
id | integer | Account ID |
customerDomain | string | null | Registered domain on the account |
customerDomainApproved | boolean | Whether the domain was automatically verified (true when an active member’s email matches the new domain) |
Errors
400 VALIDATION_ERROR—customerDomainfails the hostname pattern.401 UNAUTHORIZED— missing or invalid bearer token.403 FORBIDDEN— caller is not anADMINon the target account.
Related
Account tasks
All account operations
Update membership
Toggle domain auto-join
Get current account
Your current context