Alpha: Document API is currently alpha and subject to breaking changes.
Summary
Update the properties of an existing XE index entry.- Operation ID:
index.entries.update - API member path:
editor.doc.index.entries.update(...) - Mutates document:
yes - Idempotency:
idempotent - Supports tracked mode:
no - Supports dry run:
no - Deterministic target resolution:
yes
Expected result
Returns an IndexEntryMutationResult indicating success or a failure.Input fields
| Field | Type | Required | Description |
|---|---|---|---|
patch | object | yes | |
patch.bold | boolean | no | |
patch.crossReference | string | no | |
patch.entryType | string | no | |
patch.italic | boolean | no | |
patch.pageRangeBookmark | string | no | |
patch.subEntry | string | no | |
patch.text | string | no | |
patch.yomi | string | no | |
target | object(kind=“inline”) | yes | |
target.anchor | InlineAnchor | yes | InlineAnchor |
target.anchor.end | Position | yes | Position |
target.anchor.end.blockId | string | yes | |
target.anchor.end.offset | integer | yes | |
target.anchor.start | Position | yes | Position |
target.anchor.start.blockId | string | yes | |
target.anchor.start.offset | integer | yes | |
target.kind | "inline" | yes | Constant: "inline" |
target.nodeType | "indexEntry" | yes | Constant: "indexEntry" |
Example request
Output fields
Variant 1 (entry.kind=“inline”)
| Field | Type | Required | Description |
|---|---|---|---|
entry | object(kind=“inline”) | yes | |
entry.anchor | InlineAnchor | yes | InlineAnchor |
entry.anchor.end | Position | yes | Position |
entry.anchor.end.blockId | string | yes | |
entry.anchor.end.offset | integer | yes | |
entry.anchor.start | Position | yes | Position |
entry.anchor.start.blockId | string | yes | |
entry.anchor.start.offset | integer | yes | |
entry.kind | "inline" | yes | Constant: "inline" |
entry.nodeType | "indexEntry" | yes | Constant: "indexEntry" |
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

