Domains

Change auto-renew, WHOIS privacy or the project a bought name is connected to

patch/domain-registrations/domains/{domainId}

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/domain-registrations/domains/{domainId}
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Path parameters

domainIdstring uuid required

Request body

autoRenewboolean
whoisPrivacyboolean
projectIdstring uuid nullable

move the name and its www twin to this project (null: off every project). Its web records (@ and www) at the registrar then point to the new project; other records such as email stay

Response

Updated

idstring uuid required
domainstring required
tldstring required
registrar'dynadot' | 'manual' required
projectIdstring uuid nullable required
projectNamestring nullable required
status'active' | 'expired' | 'gone' required
registeredAtstring required

ISO-8601 timestamp

expiresAtstring required

ISO-8601 timestamp

daysLeftinteger required
autoRenewboolean required
whoisPrivacyboolean required
whoisPrivacyAvailableboolean required
renewAmountinteger required

integer minor units of currency (cents, öre)

currencystring required

lowercase ISO 4217 code, e.g. usd or sek

renewalOrderIdstring uuid nullable required

an open renewal order, if any

Changes

No recorded changes to this operation across all 1 revision of this API.