Alpha: Document API is currently alpha and subject to breaking changes.
Summary
Resolve the effective header/footer reference for a slot, walking the section inheritance chain.- Operation ID:
headerFooters.resolve - API member path:
editor.doc.headerFooters.resolve(...) - Mutates document:
no - Idempotency:
idempotent - Supports tracked mode:
no - Supports dry run:
no - Deterministic target resolution:
yes
Expected result
Returns a HeaderFooterResolveResult indicating explicit, inherited, or none status with the resolved refId.Input fields
| Field | Type | Required | Description |
|---|---|---|---|
target | object(kind=“headerFooterSlot”) | yes | |
target.headerFooterKind | enum | yes | "header", "footer" |
target.kind | "headerFooterSlot" | yes | Constant: "headerFooterSlot" |
target.section | SectionAddress | yes | SectionAddress |
target.section.kind | "section" | yes | Constant: "section" |
target.section.sectionId | string | yes | |
target.variant | enum | yes | "default", "first", "even" |
Example request
Output fields
Variant 1 (section.kind=“section”)
| Field | Type | Required | Description |
|---|---|---|---|
refId | string | yes | |
section | SectionAddress | yes | SectionAddress |
section.kind | "section" | yes | Constant: "section" |
section.sectionId | string | yes | |
status | "explicit" | yes | Constant: "explicit" |
Variant 2 (resolvedFromSection.kind=“section”)
| Field | Type | Required | Description |
|---|---|---|---|
refId | string | yes | |
resolvedFromSection | SectionAddress | yes | SectionAddress |
resolvedFromSection.kind | "section" | yes | Constant: "section" |
resolvedFromSection.sectionId | string | yes | |
resolvedVariant | enum | yes | "default", "first", "even" |
status | "inherited" | yes | Constant: "inherited" |
Variant 3 (status=“none”)
| Field | Type | Required | Description |
|---|---|---|---|
status | "none" | yes | Constant: "none" |
Example response
Pre-apply throws
TARGET_NOT_FOUNDINVALID_TARGETINVALID_INPUT
Non-applied failure codes
- None
Raw schemas
Raw input schema
Raw input schema
Raw output schema
Raw output schema

