Skip to main content
PATCH
/
api
/
v2
/
account
/
{account_id}
/
attribute
/
domains
/
{domain_name}
curl --request PATCH \
  --url https://api.example.com/api/v2/account/{account_id}/attribute/domains/{domain_name} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "is_primary": true
}
'
{
  "data": {
    "domain_name": "<string>",
    "is_primary": true
  }
}

Authorizations

Authorization
string
header
required

Reevo API key passed as Authorization: Bearer <api-key>.

Path Parameters

account_id
string<uuid>
required
domain_name
string
required

Body

application/json

PATCH /account/{id}/attribute/domains/{domain_name} body.

is_primary maps to the service is_primary_for_account flag; promoting one domain demotes the account's prior primary.

is_primary
boolean
required

Response

Successful Response

Single-item response for the domains sub-resource verbs.

data is the raw AccountDomainRead item (keyed by domain_name, no server-minted id) — the add / set-primary / move responses each carry the one affected domain. remove returns 204 with no body.

data
AccountDomainRead · object
required

Read payload for the account_domain value type.

Keyed by domain_name (no separate item id); is_primary flags the account's primary domain and status carries the link lifecycle state.