Change a site's address
change_subdomainMove a published site to a new subdomain while keeping its old address redirecting and reserved. Owner-only; confirm the current subdomain exactly.
Instructions
Moves a site to a new subdomain. The old one keeps working by redirecting to the new one, and nobody else can take it. Each site gets only a couple of changes, and a change back to an old name counts too, so use this only when the person named the new address. Requires confirm to repeat the site's current subdomain exactly; ask the person rather than filling it in. Visitors who signed in to the site or typed its password are asked again. Only an owner of the account can change an address.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Subdomain or site id, from list_sites. | |
| confirm | Yes | The site's current subdomain, repeated exactly. A mismatch refuses the call rather than guessing which site was meant. | |
| subdomain | Yes | The new subdomain, as the person gave it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Its address now. | |
| siteId | Yes | Identifier of the site. | |
| subdomain | Yes | The subdomain it answers on now. | |
| formerSubdomains | Yes | The subdomains it used to answer on, newest first; each redirects here. | |
| subdomainChangesLeft | Yes | How many more changes its plan allows, or null when it allows any number. |