restore_version
Permanently replace a survey's current blocks, questions, and Flow with one of its saved versions, with confirm: true. The current state is not kept, so save or copy it first if it may be needed. To keep the current survey, use create_survey_from_version instead.
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": {
"survey_id": "<survey_id>",
"version_id": "<version_id>",
"confirm": "<confirm>"
},
"name": "restore_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true. The survey's current blocks, questions, and Flow are replaced by the snapshot, and the current state is not kept. | |
| survey_id | Yes | The survey to restore. Must be the survey the version was saved from. | |
| version_id | Yes | Version to restore (id from read_versions) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |