Add a question
add_questionAdd a question to a Google Form with types like text, choice, scale, date, time, and rating. Set options, required, shuffle, and insertion position; returns the created item and question IDs.
Instructions
Adds a question to the form (a convenience wrapper over batchUpdate createItem). Types: text (short answer), paragraph (long answer), radio (single choice), checkbox (multiple choice), dropdown, scale (linear scale low..high), date, time, rating (stars/hearts/thumbs). Choice types require options[]. Returns the created itemId and questionId from the batchUpdate replies. index inserts at that 0-based position; omit it to append at the end (costs one extra read to count items). File-upload questions cannot be created via the API, and question grids (questionGroupItem) need raw_request with a batchUpdate body.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| low | No | Scale lower bound (default 1; scale type). | |
| high | No | Scale upper bound (default 5; scale type). | |
| type | Yes | The question type. | |
| index | No | 0-based position to insert at; omitted = append after the last item. | |
| title | Yes | The question text shown to respondents. | |
| 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. | |
| options | No | The choices — required for radio, checkbox and dropdown. | |
| shuffle | No | Shuffle option order per respondent (choice types). | |
| duration | No | Time question asks for an elapsed duration instead of a time of day. | |
| required | No | Whether an answer is required to submit. | |
| low_label | No | Label for the lowest scale point. | |
| high_label | No | Label for the highest scale point. | |
| description | No | Help text shown under the question. | |
| include_time | No | Date question also asks for a time of day. | |
| include_year | No | Date question includes the year. | |
| rating_icon_type | No | Rating icon (default star). | |
| rating_scale_level | No | Number of rating icons (3..10; default 5; rating type). |