Alpha: Document API is currently alpha and subject to breaking changes.
Summary
Rename an existing bookmark.- Operation ID:
bookmarks.rename - API member path:
editor.doc.bookmarks.rename(...) - Mutates document:
yes - Idempotency:
idempotent - Supports tracked mode:
no - Supports dry run:
no - Deterministic target resolution:
yes
Expected result
Returns a BookmarkMutationResult indicating success with the updated bookmark address or a failure.Input fields
| Field | Type | Required | Description |
|---|---|---|---|
newName | string | yes | |
target | object(kind=“entity”) | yes | |
target.entityType | "bookmark" | yes | Constant: "bookmark" |
target.kind | "entity" | yes | Constant: "entity" |
target.name | string | yes |
Example request
Output fields
Variant 1 (bookmark.kind=“entity”)
| Field | Type | Required | Description |
|---|---|---|---|
bookmark | object(kind=“entity”) | yes | |
bookmark.entityType | "bookmark" | yes | Constant: "bookmark" |
bookmark.kind | "entity" | yes | Constant: "entity" |
bookmark.name | string | 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

