PATCH /api/v2/accounts/{customerId}/membership
Updates the membership access settings for a customer org. Requires the ADMIN role and a registered customerDomain to enable domain auto-join.
Request
curl
Parameters
| Field | Type | Required | Notes |
|---|---|---|---|
customerId | string | Yes | Path parameter. ID of the customer to update |
allowDomainAutoJoin | boolean | Yes | When true, users with a verified matching-domain email join as members without admin approval. Requires customerDomain to be set |
Response
| Field | Type | Notes |
|---|---|---|
customerId | integer | Customer ID |
allowDomainAutoJoin | boolean | The setting now in effect |
Errors
400 VALIDATION_ERROR— enabling auto-join without a registeredcustomerDomain.401 UNAUTHORIZED— caller is not anADMIN.
Related
Account tasks
All account operations
Get membership
Read the current setting
Update customer domain
Register a domain first