Attach the customer's own domain to a site
set_custom_domainStarts attaching a customer-owned domain (for example www.mybakery.com) to a site in place of its runlitehost.com address (a paid plan). It requests the certificate and returns the CNAME record the customer adds to their DNS; the site's live traffic doesn't change until the domain is fully set up. A root domain (mybakery.com) can only be finished where the DNS provider supports CNAME-style records at the root, such as Cloudflare or Route 53; elsewhere the www form works, with the root forwarded to it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | The customer-owned domain, usually its www form, e.g. "www.mybakery.com". Not a runlite.in or runlitehost.com address. | |
| siteId | Yes |