set_question_required
Set whether a question in a BlockSurvey team draft requires an answer — the "Required" checkbox in the builder. Identify the question with questionId (from get_survey_details) or its 0-based position (the 4th question is position 3). Rejected for questiongroup, statement, and A/B test questions — the builder has no Required toggle for those at all. For a matrix question this is the same field as "Required: One response per row". For a contact form question, toggling this also toggles every one of its fields.
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>",
"required": "<required>"
},
"name": "set_question_required"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| position | No | 0-based index into the survey's questions array. Provide this OR questionId, not required to provide both. | |
| required | Yes | true to require an answer, false to make it optional | |
| surveyId | Yes | The Survey ID containing the question | |
| questionId | No | The question's id, as seen in get_survey_details's output |