Skip to main content

Summary

Undo the most recent history-safe mutation in the document.
  • Operation ID: history.undo
  • API member path: editor.doc.history.undo(...)
  • Mutates document: yes
  • Idempotency: non-idempotent
  • Supports tracked mode: no
  • Supports dry run: no
  • Deterministic target resolution: yes

Expected result

Returns a HistoryActionResult with noop flag, reason (EMPTY_UNDO_STACK | NO_EFFECT when noop), and revision before/after.

Input fields

No fields.

Example request

Output fields

Example response

Pre-apply throws

  • CAPABILITY_UNAVAILABLE

Non-applied failure codes

  • None

Raw schemas