Custom Domain
API referenceConnections

Re-apply a managed connection's desired records (Domain Connect async, no re-consent)

POST
/connections/{id}:reapply

Managed mode only. Recomputes the connection's authoritative desired record set and writes any drift through the provider's Domain Connect async API using the stored, encrypted grant (the provider API base pinned at onboarding) — the end user does not re-consent. On success the connection is re-verified and connection.records.updated is emitted. A failure emits connection.reapply.failed; if the provider reports the grant was revoked (401 kill-switch) the grant is cleared and the connection is flagged for re-consent.

Authorization

AuthorizationBearer <token>

Short-lived widget JWT minted server-side via POST /v1/tokens. Scoped to one application (and optionally one domain).

In: header

Path Parameters

id*string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/connections/string:reapply"
{  "id": "string",  "application_id": "string",  "domain": "string",  "host": "string",  "provider_id": "string",  "setup_type": "automatic",  "status": "pending",  "managed": true,  "created_at": "2019-08-24T14:15:22Z",  "records": [    {      "type": "CNAME",      "host": "string",      "value": "string",      "ttl": 3600,      "priority": 0,      "applied": true    }  ]}
{  "code": "string",  "title": "string",  "details": "string"}
{  "code": "string",  "title": "string",  "details": "string"}
{  "code": "string",  "title": "string",  "details": "string"}
Empty
{  "code": "string",  "title": "string",  "details": "string"}