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 Document Request → Insert Section Break
AI-generatedSummary
Insert a section break into a Google Doc at a specified location with optional formatting.
Inputs
- sectionType — Type of section break to insert (unspecified, continuous, next page)
- insertionLocation — Location where the break is inserted (document body or end of segment)
- index (required) — Zero‑based index of the insertion point within the selected segment; required when insertionLocation is 'location'
- segmentId — Identifier of the header, footer, or footnote segment; empty string means the document body
- tabId — Identifier of the tab containing the insertion point; omitted to use the first tab
Output shape
object representing the API response, typically containing the updated document's ID and status information
the response may include a 'documentId' field; other fields are optional and depend on the operation outcome
Examples
Example 1: Insert a continuous section break at the end of the first tab
sectionType=CONTINUOUS, insertionLocation=location, index=0, segmentId='', tabId=''
Example 2: Insert a next‑page break after a specific header
sectionType=NEXT_PAGE, insertionLocation=endOfSegmentLocation, segmentId='header'
Example 3: Insert a break at a custom index within a footnote
sectionType=CONTINUOUS, insertionLocation=location, index=5, segmentId='footnote123'