Site lifecycle
duplicate_site
Duplicate a published site: copies its gate configuration and seeds the new site's draft from the source's published version. The copy gets a fresh generated slug and stays unpublished with an open draft. Errors: E_NO_PUBLISHED_VERSION, E_SITE_LIMIT. Editor role.
Behaviour
- Effect
- Write. It creates or updates data in the account.
- Repeat calls
- Not idempotent. Repeating the call can produce a further change.
- Plan
- Available on every plan, including free.
Parameters
| Name | Type | Required |
|---|---|---|
| request_id | string | Yes |
| source_site_id | uuid | Yes |
| name | string | Yes |
Returns
| Name | Type |
|---|---|
| site | object |
| draft | object |
| gate | object |
| idempotency_replay | false |
Using it
duplicate_site 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.