Google Docs Batch Update icon

Google Docs Batch Update

Build and send Google Docs batch update requests

Create Headers & Footers Request → Create Footer

AI-generated

Summary

Creates a footer in a Google Docs document at a specified location.

Inputs

  • type — The type of footer to create (unspecified or default).
  • index (required) — Zero‑based index in UTF‑16 code units of the position where the footer should be placed, relative to the segment specified by segmentId.
  • additionalLocationFields — Additional location settings such as segment ID and tab ID for the footer's placement.

Output shape

CreateFooterRequest object (contains the footer configuration)

The operation returns the request payload; if the node only signals success, the response body may be empty.

Examples

Example 1: Add a default footer to the body of a document.

type: DEFAULT, index: 0, additionalLocationFields: {segmentId: '', tabId: ''}

Example 2: Insert a footer at the end of the first section using a specific segment ID.

type: DEFAULT, index: 1, additionalLocationFields: {segmentId: 'section_5', tabId: ''}

Example 3: Create an unspecified footer in the first tab of a multi‑section document.

type: HEADER_FOOTER_TYPE_UNSPECIFIED, index: 0, additionalLocationFields: {segmentId: '', tabId: 'tab_1'}

Links

Discussion