PATCH /api/v2/accounts/{customerId}/domain
Updates a customer’s registered organization domain. The domain gates domain auto-join membership. Requires ADMIN role on the target customer (direct membership, parent admin via the hierarchy, or SuperAdmin).
Request
curl
Parameters
| Field | In | Type | Required | Notes |
|---|---|---|---|---|
customerId | path | string | Yes | Customer ID to update |
customerDomain | body | string | Yes | Registered organization domain (max 255, valid hostname pattern) |
Response
| Field | Type | Notes |
|---|---|---|
id | integer | Customer ID |
customerDomain | string | null | Registered organization domain on the customer |
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 customer.
Related
Account tasks
All account operations
Update membership
Toggle domain auto-join
Get current account
Your current context