Set site slug
set_site_slugChange a site's slug, the last segment of its address on the workspace host and, for a landing page, of its snaphost.ai/lp address. The share permalink (nanoId) keeps working, and the old address on the workspace host forwards to the new one until another site takes it or remove_site_forward stops it; an /lp address and any campaign link to it stop. Normalised to lowercase letters, digits and hyphens; refused when another site on the same drive holds it, and when the new address is an old one still forwarding to another site: ask the user, then retry with replace_forward to stop that forward. Needs a workspace on Pro, which publishes on its own host.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | The new slug | |
| site_id | Yes | The id of the site | |
| workspace_id | No | Optional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for). | |
| replace_forward | No | Take the address even though it forwards to another site, stopping that forward. Only after the user agreed. |