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

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

Returns

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