Alpha: Document API is currently alpha and subject to breaking changes.
Summary
Insert a new table-of-authorities block at a target location.- Operation ID:
authorities.insert - API member path:
editor.doc.authorities.insert(...) - Mutates document:
yes - Idempotency:
non-idempotent - Supports tracked mode:
no - Supports dry run:
no - Deterministic target resolution:
yes
Expected result
Returns an AuthoritiesMutationResult indicating success with the TOA address or a failure.Input fields
| Field | Type | Required | Description | |||
|---|---|---|---|---|---|---|
at | object(kind=“documentStart”) \ | object(kind=“documentEnd”) \ | object(kind=“before”) \ | object(kind=“after”) | yes | One of: object(kind=“documentStart”), object(kind=“documentEnd”), object(kind=“before”), object(kind=“after”) |
config | object | no | ||||
config.category | integer | no | ||||
config.entryPageSeparator | string | no | ||||
config.includeHeadings | boolean | no | ||||
config.pageRangeSeparator | string | no | ||||
config.tabLeader | string | no | ||||
config.usePassim | boolean | no |
Example request
Output fields
Variant 1 (authorities.kind=“block”)
| Field | Type | Required | Description |
|---|---|---|---|
authorities | object(kind=“block”) | yes | |
authorities.kind | "block" | yes | Constant: "block" |
authorities.nodeId | string | yes | |
authorities.nodeType | "tableOfAuthorities" | yes | Constant: "tableOfAuthorities" |
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

