Site lifecycle

change_slug

Change a site's subdomain slug. Requires the Pro plan (E_PLAN_REQUIRED otherwise). Requires editor role. Call check_slug_available first to avoid E_SLUG_INVALID / E_SLUG_RESERVED / E_SLUG_UNAVAILABLE / E_SLUG_RETIRED. On success the outgoing slug is retired (permanently owned by this site) and the site's cache tag is purged. changed:false when the new slug equals the current slug (no work performed).

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

NameTypeRequiredDescription
request_idstringYes
site_iduuidYes
new_slugstringYesSubdomain label: lowercase letters, digits and hyphens; 1..63 chars.

Returns

NameTypeDescription
site_iduuid
old_slugstring
new_slugstring
changedboolean
idempotency_replayfalse

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 38 Sentway tools. See connecting over MCP.