Skip to main content
addItem appends or inserts any supported Forms item.

Example

Inputs

form and item are required. position is a one-based insertion position; omit it to append. requiredRevisionId enables optimistic concurrency.

Item types

  • question: title, optional description/grading, and a typed question from Add question.
  • grid: columns, gridType: "multipleChoice" | "checkbox", and rows with title, optional required and questionId; shuffleRows is optional.
  • pageBreak or text: optional title and description.
  • image: public sourceUrl, optional altText, alignment, width 1–740, title, and description.
  • video: YouTube youtubeUrl, optional caption, alignment, width 1–740, title, and description.
account optionally selects the Google account binding.

Output

Returns the complete updated Form, including provider-generated IDs. Images must be reachable by Google and videos must use a YouTube watch or share URL.