Alpha: Document API is currently alpha and subject to breaking changes.
Summary
Rebuild (recalculate) a field.- Operation ID:
fields.rebuild - API member path:
editor.doc.fields.rebuild(...) - Mutates document:
yes - Idempotency:
idempotent - Supports tracked mode:
no - Supports dry run:
no - Deterministic target resolution:
yes
Expected result
Returns a FieldMutationResult indicating success or a failure.Input fields
| Field | Type | Required | Description |
|---|---|---|---|
target | object(kind=“field”) | yes | |
target.blockId | string | yes | |
target.kind | "field" | yes | Constant: "field" |
target.nestingDepth | integer | no | |
target.occurrenceIndex | integer | yes |
Example request
Output fields
Variant 1 (field.kind=“field”)
| Field | Type | Required | Description |
|---|---|---|---|
field | object(kind=“field”) | yes | |
field.blockId | string | yes | |
field.kind | "field" | yes | Constant: "field" |
field.nestingDepth | integer | no | |
field.occurrenceIndex | integer | yes | |
success | true | yes | Constant: true |
Variant 2 (success=false)
| Field | Type | Required | Description |
|---|---|---|---|
failure | object | yes | |
failure.code | string | yes | |
failure.details | any | no | |
failure.message | string | yes | |
success | false | yes | Constant: false |
Example response
Pre-apply throws
TARGET_NOT_FOUNDINVALID_TARGETINVALID_INPUTCAPABILITY_UNAVAILABLE
Non-applied failure codes
- None
Raw schemas
Raw input schema
Raw input schema
Raw output schema
Raw output schema
Raw success schema
Raw success schema
Raw failure schema
Raw failure schema

