domains
PUT /v1/domains/{domainId}/settings
Change a domain's registrar settings.
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ázev | Typ | Požadováno | Co to je |
|---|---|---|---|
domainId (path) | Uuid | Ano | The domain's id. |
Tělo požadavku
| Název | Typ | Požadováno | Co to je |
|---|---|---|---|
auto_renew | boolean | Ne | — |
transfer_lock | boolean | Ne | — |
dnssec_enabled | boolean | Ne | — |
privacy_enabled | boolean | Ne | — |
Odpověď
| Název | Typ | Požadováno | Co to je |
|---|---|---|---|
registrar | string | Ano | The registrar driver holding this domain (a driver name, never a vendor id). |
auto_renew | boolean | Ano | Whether we renew it before expiry. Ours, not the registrar's. |
transfer_lock | boolean | Ano | Registrar transfer lock (`clientTransferProhibited`) — blocks an outbound transfer. |
dnssec_enabled | boolean | Ano | — |
privacy_enabled | boolean | Ano | WHOIS privacy / registrant redaction, where the TLD supports it. |
Chyby, které může tento koncový bod vrátit
401 · 403 · 404 · 422 · 429 · 503