Archive Survey
archive_surveyArchives a DRAFT survey (never-running, no responses) to the recoverable bin. Reversible — the user restores it in the app; this does NOT permanently delete, final deletion is done by the user in the app. Refuses running surveys (stop them first with pause_survey, or archive in the app) and surveys with collected responses (handle those in the app — stored data is only touched by the user directly). An archived survey disappears from list_surveys and holds no concurrent-survey slot; get_survey still serves it with archived:true. Archiving an already archived survey is idempotent success (wasAlreadyArchived). The archived state is verified server-side by re-reading the stored flag before success is reported.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "archive_survey"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Survey publication code — the 8-character code from the survey's public link (e.g. 1a2b3c4d). Returned by list_surveys. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | What the call did, verified, refused or previewed — the complete human-readable outcome. | |
| preview | No | true when the call was a preview (confirm not passed): nothing was changed. |