PATCH /api/v2/accounts/{customerId}/membership
Updates the membership settings for a customer org. Requires ADMIN role and a registered customerDomain to enable domain auto-join.
Request
curl
Parameters
| Field | In | Type | Required | Notes |
|---|---|---|---|---|
customerId | path | string | Yes | Customer ID to update |
allowDomainAutoJoin | body | boolean | Yes | When true, users with a verified matching-domain email join immediately as members without admin approval |
Response
| Field | Type | Notes |
|---|---|---|
customerId | integer | Customer ID |
allowDomainAutoJoin | boolean | Effective auto-join setting after the update |
Errors
400 VALIDATION_ERROR—allowDomainAutoJoinistruebut the customer has no registeredcustomerDomain.401 UNAUTHORIZED— missing or invalid bearer token.403 FORBIDDEN— caller is not anADMINon the target customer.
Related
Account tasks
All account operations
Get membership
Read access settings
Update customer domain
Set the org domain