domains

PUT /v1/domains/{domainId}/settings

Change a domain's registrar settings.

Све domains крајње тачке

Сва документација за програмере →

Аутентификација

Пошаљите API кључ као bearer токен. Кључ мора имати дозволу domains.dns.manage; кључ без ње се одбија уз 403, а не 404.

Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.

Испробајте

Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.

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

Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли

Детаљи

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 decided here and a registrar that keeps its own auto-renew flag is made to agree with it, registrar first and read back (#7175) — so switching it off can never leave the registrar renewing and charging on its own. (On the Cloudflare route switching it on is applied by the renewal sweep once the renewal is paid.) A registrar that refuses or ignores the change is a 503. Requires domains.dns.manage.

Параметри

НазивТипОбавезноШта је ово
domainId (path)UuidДаThe domain's id.

Тело захтева

НазивТипОбавезноШта је ово
auto_renewbooleanНе—
transfer_lockbooleanНе—
dnssec_enabledbooleanНе—
privacy_enabledbooleanНе—

Одговор

НазивТипОбавезноШта је ово
registrarstringДаThe registrar driver holding this domain (a driver name, never a vendor id).
auto_renewbooleanДаWhether we renew it before expiry. Ours, not the registrar's.
transfer_lockbooleanДаRegistrar transfer lock (clientTransferProhibited) — blocks an outbound transfer.
dnssec_enabledbooleanДа—
privacy_enabledbooleanДаWHOIS privacy / registrant redaction, where the TLD supports it.

Грешке које ова крајња тачка може вратити

401 · 403 · 404 · 422 · 429 · 503