Update an item
update_questionUpdate a Google Form question by its index with new values and an update mask for specific fields. Find the index and current item shape with get_form first.
Instructions
Updates an existing item (question or other) via batchUpdate updateItem. The item is addressed by its 0-based index — call get_form first to see current positions and the item's current shape. item is a raw Forms API Item object with the new values; update_mask names the fields to replace, e.g. "title" or "title,questionItem.question.required". Only masked fields change; masking a field the item object leaves unset clears it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | The Forms API Item object with the new values, e.g. {"title":"New title","questionItem":{"question":{"required":true}}}. | |
| index | Yes | 0-based position of the item to update (from get_form). | |
| form_id | Yes | The form id — the long id from the form URL (docs.google.com/forms/d/<formId>/edit) or from create_form output. | |
| update_mask | Yes | Comma-separated field paths to replace, e.g. "title,questionItem.question.required". |