> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Batch update form

> Run provider-native Google Forms update requests atomically.

`batchUpdateForm` is the escape hatch for Forms features that do not yet have a
code-first action. Prefer the high-level item, metadata, settings, and publishing
actions for common operations.

## Example

```ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { batchUpdateForm } from "automate.ax/google-forms"

export default automation("Create a provider-native item", () => {
  onHttpRequest({ scope: "automation" })

  batchUpdateForm({
    form: "form-id",
    includeForm: true,
    requests: [
      {
        createItem: {
          item: { title: "Introduction", textItem: {} },
          location: { index: 0 },
        },
      },
    ],
  })
})
```

## Inputs

`form` and a non-empty `requests` array of Google Forms API `Request` objects
are required. `includeForm` controls whether Google returns the updated form.
Use either `requiredRevisionId` for a strict optimistic write or
`targetRevisionId` to merge against a recent revision, never both. `account`
selects the Google account.

## Output

```ts theme={null}
interface FormBatchUpdateResult {
  form?: Form
  revisionId?: string
  replies: Array<{
    createdItemId?: string
    createdQuestionIds: string[]
  }>
}
```

Replies correspond one-to-one with requests. Provider-native request shapes
follow the Google Forms API and can change independently of Automate.ax's
high-level types.
