domains

PUT /v1/domains/{domainId}/settings

Change a domain's registrar settings.

Բոլոր domains վերջնակետերը

Նույնականացում

Ուղարկեք API բանալին որպես bearer token: Բանալին պետք է ունենա 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 ours alone: we drive renewals, so it takes no registrar call. A registrar that refuses 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