Alpha: Document API is currently alpha and subject to breaking changes.
Summary
Execute a mutation plan atomically against the document.- 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
Expected result
Returns a PlanReceipt with per-step results for the atomically applied mutation plan.Supported step operations
Use these values insteps[].op when authoring mutation plans.
Assert
Text
Format
Create
Tables
The runtime capability snapshot also exposes this allowlist at
planEngine.supportedStepOps.
Input fields
Example request
Output fields
Example response
Pre-apply throws
REVISION_MISMATCHMATCH_NOT_FOUNDAMBIGUOUS_MATCHSTYLE_CONFLICTPRECONDITION_FAILEDINVALID_INPUTCROSS_BLOCK_MATCHSPAN_FRAGMENTEDTARGET_MOVEDPLAN_CONFLICT_OVERLAPINVALID_STEP_COMBINATIONREVISION_CHANGED_SINCE_COMPILEINVALID_INSERTION_CONTEXTDOCUMENT_IDENTITY_CONFLICTCAPABILITY_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

