Domains

Change the site assignment (site_id, null detaches), point the hostname at one public published page (page: its slug, null detaches it), serve every published page by slug (pages: true, false stops it), toggle capabilities (email_sending on/off, email_receiving on), or turn auto-renewal on or off for a domain bought here (auto_renew: false lets it expire at expires_at; a change can take a minute to show on GET).

patch/domains/{id}

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Path parameters

id, string required

The domain's ID.

Request body

object required
site_id, string nullable
page, string nullable

Slug of a public published page to serve at this hostname; null stops serving it. A gated page can't be served on a custom domain, and a hostname serves either a site or one page.

pages, boolean

true makes this the account's pages domain (every published page at https://<hostname>/<slug>, gated ones after the viewer signs in on it); false stops it.

capabilities, object
auto_renew, boolean

Domains bought here only. true renews the registration (charged to the card on file) before expires_at; false lets it lapse then.

Response

Domain

Domain required
object, string required
id, string required
domain, string required
purchase_status, 'pending_payment' | 'registering' | 'registered' | 'failed' | 'null' nullable required
auto_renew, boolean nullable required

Whether the registration renews itself before expires_at; null for a domain connected rather than bought here. Change it with PATCH auto_renew.

expires_at, string date-time nullable
transfer_out_available_on, string nullable required

First date the registration can move to another registrar (60 days after registration); null for a domain connected rather than bought here.

transfer_out_requested_at, string date-time nullable
transfer_in_status, 'pending_payment' | 'transferring' | 'completed' | 'failed' | 'null' nullable required

pending_payment, transferring, completed or failed for a domain moved here from another registrar (POST /v1/domains/transfer_in); null otherwise.

transfer_in_state, string nullable required

The registrar's last reported step of a transfer to Crevio: pending, in_progress, blocked (waiting on the current registrar, up to 5 days), action_required (the owner must approve an email from the current registrar), succeeded or failed.

transfer_in_error, string nullable required

Why the last transfer to Crevio failed, as the registrar put it.

site_id, string nullable required
page, string nullable required
pages, boolean required

True when the domain serves every published page of the account at https://<domain>/<slug>.

managed_zone, boolean required
zone_id, string nullable required
capabilities, object required
records, object[] required
next_step, string nullable required
verified_at, string date-time nullable
created_at, string date-time required
verification_errors, string[] required

Changes

    • breaking

      the response property next_step became nullable for the status

    • breaking

      the response property site_id became nullable for the status

    • breaking

      the response property zone_id became nullable for the status

    3 more changes in this revision