Actions40
- Create Bullets Request Actions
- Create Document Request Actions
- Create Headers & Footers Request Actions
- Create Images Request Actions
- Create Named Ranges Request Actions
- Create Tables Request Actions
- Create Tabs Request Actions
- Create Text Request Actions
- Send Request Actions
Create Headers & Footers Request → Create Footer
AI-generatedSummary
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'}