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

# headerFooters.resolve

> Resolve the effective header/footer reference for a slot, walking the section inheritance chain.

## 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

```json theme={null}
{
  "target": {
    "headerFooterKind": "header",
    "kind": "headerFooterSlot",
    "section": {
      "kind": "section",
      "sectionId": "example"
    },
    "variant": "default"
  }
}
```

## 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

```json theme={null}
{
  "refId": "example",
  "section": {
    "kind": "section",
    "sectionId": "example"
  },
  "status": "explicit"
}
```

## Pre-apply throws

* `TARGET_NOT_FOUND`
* `INVALID_TARGET`
* `INVALID_INPUT`

## Non-applied failure codes

* None

## Raw schemas

> [accordion] Raw input schema
>
> ```json theme={null}
> {
>   "additionalProperties": false,
>   "properties": {
>     "target": {
>       "additionalProperties": false,
>       "properties": {
>         "headerFooterKind": {
>           "enum": [
>             "header",
>             "footer"
>           ]
>         },
>         "kind": {
>           "const": "headerFooterSlot"
>         },
>         "section": {
>           "$ref": "#/$defs/SectionAddress"
>         },
>         "variant": {
>           "enum": [
>             "default",
>             "first",
>             "even"
>           ]
>         }
>       },
>       "required": [
>         "kind",
>         "section",
>         "headerFooterKind",
>         "variant"
>       ],
>       "type": "object"
>     }
>   },
>   "required": [
>     "target"
>   ],
>   "type": "object"
> }
> ```

> [accordion] Raw output schema
>
> ```json theme={null}
> {
>   "oneOf": [
>     {
>       "additionalProperties": false,
>       "properties": {
>         "refId": {
>           "type": "string"
>         },
>         "section": {
>           "$ref": "#/$defs/SectionAddress"
>         },
>         "status": {
>           "const": "explicit"
>         }
>       },
>       "required": [
>         "status",
>         "refId",
>         "section"
>       ],
>       "type": "object"
>     },
>     {
>       "additionalProperties": false,
>       "properties": {
>         "refId": {
>           "type": "string"
>         },
>         "resolvedFromSection": {
>           "$ref": "#/$defs/SectionAddress"
>         },
>         "resolvedVariant": {
>           "enum": [
>             "default",
>             "first",
>             "even"
>           ]
>         },
>         "status": {
>           "const": "inherited"
>         }
>       },
>       "required": [
>         "status",
>         "refId",
>         "resolvedFromSection",
>         "resolvedVariant"
>       ],
>       "type": "object"
>     },
>     {
>       "additionalProperties": false,
>       "properties": {
>         "status": {
>           "const": "none"
>         }
>       },
>       "required": [
>         "status"
>       ],
>       "type": "object"
>     }
>   ]
> }
> ```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.