Site lifecycle
restore_site
Restore an archived site. Resolves to status 'published' if the site had a current published version at archive time, otherwise 'draft'. Naturally idempotent: restoring a non-archived site returns changed:false. Requires editor role.
Behaviour
- Effect
- Write. It creates or updates data in the account.
- Repeat calls
- Idempotent. Repeating the same call produces the same result.
- Plan
- Available on every plan, including free.
Parameters
| Name | Type | Required |
|---|---|---|
| request_id | string | Yes |
| site_id | uuid | Yes |
Returns
| Name | Type |
|---|---|
| site_id | uuid |
| status | enum draft | published |
| changed | boolean |
| idempotency_replay | false |
Using it
restore_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.