Update answer option
update_answer_optionChange an answer option's text, flags, image or position.
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>",
"qid": "<qid>",
"code": "<code>"
},
"name": "update_answer_option"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qid | Yes | Question id (qid from list_questions). | |
| code | Yes | Code of the answer to change. | |
| answer | No | New answer text. | |
| img_url | No | Image URL (empty string clears). | |
| is_term | No | Screen-out flag. | |
| has_other | No | 'Other, please specify' flag. | |
| sortorder | No | New position (1-based). | |
| survey_id | Yes | Survey id (see list_surveys, or the survey_id returned by a create tool). | |
| fixed_position | No | Pin to a 1-based slot while the rest shuffle; null unpins. |