Skip to main content
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

FieldInTypeRequiredNotes
customerIdpathstringYesID of the account to update
customerDomainbodystringYesRegistered domain for the account (max 255, valid hostname pattern)

Response

FieldTypeNotes
idintegerAccount ID
customerDomainstring | nullRegistered domain on the account
customerDomainApprovedbooleanWhether the domain was automatically verified (true when an active member’s email matches the new domain)

Errors

  • 400 VALIDATION_ERRORcustomerDomain fails the hostname pattern.
  • 401 UNAUTHORIZED — missing or invalid bearer token.
  • 403 FORBIDDEN — caller is not an ADMIN on the target account.
See Errors for the full error contract.

Account tasks

All account operations

Update membership

Toggle domain auto-join

Get current account

Your current context