Site lifecycle
archive_site
Archive a site so it stops serving traffic. Naturally idempotent: archiving an already-archived site returns changed:false and does not fire a cache purge. Requires editor role. Restore later with restore_site.
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 | "archived" |
| changed | boolean |
| idempotency_replay | false |
Using it
archive_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.