Set the primary custom domain
websiteDomains_setPrimaryDomainMakes this domain the canonical hostname for the published website: requests reaching the platform subdomain or any other custom domain are permanently redirected (HTTP 308) to it, preserving path and query. Only active custom domains can be made primary — the request fails with 409 otherwise. Any previous primary is cleared in the same transaction.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"websiteId": "<websiteId>",
"domainId": "<domainId>"
},
"name": "websiteDomains_setPrimaryDomain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domainId | Yes | ||
| websiteId | Yes |