Alpha: Document API is currently alpha and subject to breaking changes.
Summary
- Operation ID:
mutations.apply - API member path:
editor.doc.mutations.apply(...) - Mutates document:
yes - Idempotency:
non-idempotent - Supports tracked mode:
yes - Supports dry run:
no - Deterministic target resolution:
yes
Input fields
| Field | Type | Required | Description |
|---|---|---|---|
atomic | true | yes | Constant: true |
changeMode | enum | yes | "direct", "tracked" |
expectedRevision | string | yes | |
steps | object[] | yes |
Example request
Output fields
| Field | Type | Required | Description |
|---|---|---|---|
revision | object | yes | |
steps | object[] | yes | |
success | true | yes | Constant: true |
timing | object | yes | |
trackedChanges | object[] | no |
Example response
Pre-apply throws
REVISION_MISMATCHMATCH_NOT_FOUNDAMBIGUOUS_MATCHSTYLE_CONFLICTPRECONDITION_FAILEDINVALID_INPUTCROSS_BLOCK_MATCHSPAN_FRAGMENTEDTARGET_MOVEDPLAN_CONFLICT_OVERLAPINVALID_STEP_COMBINATIONCAPABILITY_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

