update_question
Edit an existing question in a BlockSurvey team draft — its label, description, required flag, answer choices, and/or type-specific scale/limit/format settings (scale range, star count, character/value limits, date format, file count limit, list max entries, default phone country — see options' field descriptions). Identify the question with questionId (from get_survey_details) or its 0-based position in the questions array (e.g. the 4th question is position 3). Does NOT support changing a question's fundamental type — that's a separate, more destructive operation in the real app; use change_question_type for that. The one exception is exType on an existing customerexperience question — switching NPS/CSAT/CES is a same-type scale change, not a type change, so it's supported here directly (no need to delete and re-add). npsTheme (cosmetic NPS scale coloring) is also editable directly, same reasoning. For choice-style or matrix questions, if you're changing the answer choices you MUST ask the end user for the actual new choices first — do not invent them. options.values/rows/columns REPLACE the choices entirely and generate fresh ids for them — if any discarded choice is still referenced elsewhere as a piped reference, the call is refused unless force is set; tell the user about that instead of blindly forcing it through — piped references are left dangling even with force. Display logic, discount logic, calculations, feedback, and jump-logic conditions are NOT left dangling: if a discarded choice is referenced in any of those, it's always fully cleaned up once the replace proceeds (check displayLogicCleaned/discountLogicCleaned/calculationsCleaned/feedbackCleaned/jumpLogicCleaned in the result) — and the refusal message says so distinctly when that's the only kind of reference found. If you're only adding, renaming, or removing specific choices rather than replacing the whole list, prefer add_answer_choice / edit_answer_choice / delete_answer_choice instead — it edits choices in place and never has this problem. Changing a scale/range field doesn't have that same dangling-reference risk, but can still make existing skip logic or a calculation referencing this question stop making sense against the new range — the response will flag it if that's a possibility, so relay that to the user rather than assuming everything downstream is still fine.
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": {
"surveyId": "<surveyId>"
},
"name": "update_question"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Replace the answer choices even though a discarded choice is still referenced elsewhere in the survey. Only a piped reference is left dangling, not cleaned up. Display logic, discount logic, calculations, feedback, and jump-logic conditions are always fully cleaned up once you proceed, never dangling. Only set this after explicitly telling the user what was found and getting their confirmation. Ignored unless `options` is also provided. | |
| label | No | New question text. Omit to leave unchanged. | |
| exType | No | Only applies to an existing 'customerexperience' question — switches it between 'nps' (Net Promoter Score, 0-10 scale), 'csat' (Customer Satisfaction, 1-5 scale), and 'ces' (Customer Effort Score, 1-5 scale) in place, adjusting the scale to match. Ignored for every other question type. Omit to leave unchanged. | |
| teamId | No | Which team workspace to act in (ids come from get_account_info or list_surveys). Optional: if omitted, the server uses the team that owns the given surveyId, or your only team. Required for create_survey when you belong to several teams. | |
| options | No | Changes to answer choices and/or type-specific settings — every field replaces or updates only what you provide, everything else on the question is left as-is. Answer choices: {values: [...]} for choice-style questions (multiplechoice, checkboxes, dropdown, dropdownmultiple, ranking, colorpicker — for colorpicker, values are text prompts to pick a color for, e.g. "Preferred logo color"; the respondent picks the actual color when answering, there's no way to assign colors to options here), {rows: [...], columns: [...]} for matrix questions — replaces the existing ones entirely, only valid for questions of those types. Scale/limit/format fields (columnOptions/scaleMin/scaleMax/scaleStep/starCount/limitMin/limitMax/dateFormat/timeFormat/fileLimit/listLimit/countryCode/countryName) are each only relevant to specific questionTypes — see each field's own description — and silently ignored on a question of any other type. Call get_survey_details first if you're unsure of a question's existing type/bType. Omit entirely if you're changing neither. | |
| npsTheme | No | Only applies to an existing 'customerexperience' question whose exType is (or is being changed to, via `exType` in this same call) 'nps' — the visual color styling of the 0-10 scale buttons, matching the builder's "NPS theme selection" dropdown. Purely cosmetic. Ignored/stripped for csat/ces and for every other question type. Omit to leave unchanged. Note: this tool has no equivalent of the builder's "Component Type" toggle (Opinion Scale vs. Choose Single for csat/ces) — it's implemented as a type change under the hood (regenerates the question's id), so it lives on change_question_type instead: call that with questionType: 'customerexperience' and componentType set to the target. | |
| position | No | 0-based index into the survey's questions array. Provide this OR questionId, not required to provide both. | |
| required | No | Whether an answer is required. Omit to leave unchanged. | |
| surveyId | Yes | The Survey ID containing the question | |
| questionId | No | The question's id, as seen in get_survey_details's output | |
| description | No | New question description. Omit to leave unchanged. |