Skip to main content
POST
Set the primary custom domain

Authorizations

Authorization
string
header
required

Cactal API key. Create one in the dashboard or via POST /apiKeys. The plaintext key is shown once at creation.

Path Parameters

websiteId
string
required
Minimum string length: 1
domainId
string
required
Minimum string length: 1

Response

Confirmation that the domain is now primary.

id
string
required

Id of the domain that is now primary.

hostname
string
required

Hostname that published traffic now redirects to.

isPrimary
boolean
required

The domain is now the canonical custom domain; any previous primary was cleared.