sites

Set Primary Domain

Set a domain as the primary domain. All other ARecord domains attached to your site will redirect to the primary domain.

put/sites/{site_id}/domains/{id}/primary

Request

Path parameters

site_idinteger required
idinteger required

Response

Successful Response

messagestring
dataobject

Example response

{
  "message": "Success",
  "data": {
    "id": 15,
    "created": "2023-04-17T15:53:38.000Z",
    "primary": true,
    "name": "www",
    "healthy": true,
    "dnsConfirmed": true,
    "provisioned": true,
    "domainName": "pressable.dev",
    "ipAddresses": [
      "199.16.172.11",
      "199.16.173.88"
    ]
  }
}

Changes

No recorded changes to this operation across all 2 revisions of this API.