domains

PUT /v1/domains/{domainId}/settings

Change a domain's registrar settings.

Všechny koncové body domains

Autentizace

Zašlete API klíč jako nosný token (bearer token). Klíč musí mít oprávnění domains.dns.manage; klíč bez něj je odmítnut s kódem 403, nikoli 404.

Tento koncový bod nevyžaduje žádné ID organizace. Váš klíč již identifikuje organizaci, ke které patří, a odpověď je na ni omezena.

Vyzvednout

Nahraďte cokoli v závorkách vlastními hodnotami a zástupný symbol klíče klíčem z vašeho řídicího panelu.

curl -X PUT https://api.zinndigital.com/v1/domains/{domainId}/settings \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

Přihlášeni? Konzole API ve vašem dashboardu automaticky doplní vaše skutečné ID organizace i váš vlastní klíč a odešle požadavek na živé API, abyste viděli reálnou odpověď. Otevřete tento koncový bod v konzoli API

Podrobnosti

A **partial** update: an omitted field is left alone, never reset. Each changed flag is applied at the **registrar first** and mirrored onto our record only once it succeeds — so this endpoint never reports a protection (a transfer lock, WHOIS privacy) that the registrar has not actually applied. `auto_renew` is ours alone: we drive renewals, so it takes no registrar call. A registrar that refuses the change is a `503`. Requires `domains.dns.manage`.

Parametry

NázevTypPožadovánoCo to je
domainId (path)UuidAnoThe domain's id.

Tělo požadavku

NázevTypPožadovánoCo to je
auto_renewbooleanNe
transfer_lockbooleanNe
dnssec_enabledbooleanNe
privacy_enabledbooleanNe

Odpověď

NázevTypPožadovánoCo to je
registrarstringAnoThe registrar driver holding this domain (a driver name, never a vendor id).
auto_renewbooleanAnoWhether we renew it before expiry. Ours, not the registrar's.
transfer_lockbooleanAnoRegistrar transfer lock (`clientTransferProhibited`) — blocks an outbound transfer.
dnssec_enabledbooleanAno
privacy_enabledbooleanAnoWHOIS privacy / registrant redaction, where the TLD supports it.

Chyby, které může tento koncový bod vrátit

401 · 403 · 404 · 422 · 429 · 503