Alpha: Document API is currently alpha and subject to breaking changes.
Summary
- Operation ID:
mutations.preview - API member path:
editor.doc.mutations.preview(...) - Mutates document:
no - Idempotency:
idempotent - Supports tracked mode:
no - 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 |
|---|---|---|---|
evaluatedRevision | string | yes | |
failures | object[] | no | |
steps | object[] | yes | |
valid | boolean | yes |
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

