Domains

Update registration settings

Changes settings of a domain the team registered through Spacefast: transferLock, WHOIS privacySetting, the registrant (contactId of a saved contact), and the autoRenew preference. Unlocking transfers, turning off privacy, or changing the registrant affects who controls the domain and whose details are public, so make those changes only at the user's request. autoRenew is saved as a preference only; nothing renews automatically yet, and renewal is a separate registration action.

patch/v1/domains/{domainId}/registration

Request

  • Base URL: https://api.spacefast.com
  • URL: https://api.spacefast.com/v1/domains/{domainId}/registration
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://api.spacefast.com/v1/auth/oauth2/authorize, token URL https://api.spacefast.com/v1/auth/oauth2/token; client credentials, token URL https://api.spacefast.com/v1/auth/oauth2/token, scopes: domains:write)

Path parameters

domainIdstring required

Request body

autoRenewboolean

Saves the auto-renew preference. Nothing renews on its own yet; renew with { action: "renew" }.

transferLockboolean

Pass true to enable the registrar transfer lock. Pass false to disable it.

privacySetting'enable_privacy_service' | 'redact_contact_info' | 'disclose_contact_info'

WHOIS privacy behavior.

contactIdstring nullable

Registrant contact record.

Response

Response for status 200

$schemastring uri

Canonical JSON Schema URL for this response body. The server also sends it in the Link: rel="describedby" response header.

Changes

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