Add another domain to a website
add_domainUse this when a site Inclusify already knows about is reachable on ANOTHER hostname the widget also needs to serve on — a country TLD, a subdomain, a staging host. WRITES to this website's Inclusify configuration, never to the site itself: no code, theme or DNS is touched, and adding a hostname here does not make it resolve. For a site Inclusify has never heard of, use add_website instead — this tool only adds to an existing one. The new hostname must be the SAME NAME as the site's existing domains: from "example.com" you may add "example.co.uk" or "shop.example.com", but not "somethingelse.com" — that is refused, and the refusal says what would have been allowed. Localhost and IP addresses are refused. A domain already registered to another Inclusify account is refused and needs support, because a hostname belongs to exactly one account. The first domain on a website becomes its primary; later ones do not. After adding, the widget must still be installed on that hostname — call widget_status to check whether it has reported in.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | The new hostname to add, e.g. "example.co.uk" or "shop.example.com". A URL works too and is reduced to its host. Must share a name with the website's existing domains. | |
| website | Yes | The website to add TO, as already registered in Inclusify, e.g. "example.com". |