Skip to main content

Summary

Compare the current document (base) against a previously captured target snapshot. Returns a versioned diff payload describing the changes from base to target.
  • Operation ID: diff.compare
  • API member path: editor.doc.diff.compare(...)
  • Mutates document: no
  • Idempotency: idempotent
  • Supports tracked mode: no
  • Supports dry run: no
  • Deterministic target resolution: yes

Expected result

Returns a DiffPayload with a summary and opaque payload.

Input fields

Example request

Output fields

Example response

Pre-apply throws

  • INVALID_INPUT
  • CAPABILITY_UNSUPPORTED

Non-applied failure codes

  • None

Raw schemas