Site lifecycle
change_slug
Change a site's subdomain slug. Call check_slug_available first to avoid E_SLUG_INVALID / E_SLUG_RESERVED / E_SLUG_UNAVAILABLE / E_SLUG_RETIRED. The outgoing slug is retired to this site and the cache tag is purged. changed:false when the slug is unchanged. Pro plan and editor role.
Behaviour
- Effect
- Destructive. It can remove or overwrite existing data.
- Repeat calls
- Idempotent. Repeating the same call produces the same result.
- Plan
- Available on every plan, including free.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| request_id | string | Yes | - |
| site_id | uuid | Yes | - |
| new_slug | string | Yes | Subdomain label: lowercase letters, digits and hyphens; 1..63 chars. |
Returns
| Name | Type |
|---|---|
| site_id | uuid |
| old_slug | string |
| new_slug | string |
| changed | boolean |
| idempotency_replay | false |
Using it
change_slug is called by an AI assistant connected to Sentway over MCP, not by hand. Point the assistant at the Sentway MCP endpoint and complete the OAuth flow, and the tool becomes available in the same session as the other 56 Sentway tools. See connecting over MCP.