GET
/docs/{docId}/compareCompare document versions
Compare two versions of the same document by their state hashes. Returns details about what changed between the versions.
docIdstringrequired
A string id (UUID)
leftstringoptional
Hash of the left version to compare (defaults to HEAD)
rightstringoptional
Hash of the right version to compare (defaults to HEAD)
maxRowsintegeroptional
Maximum number of row changes to include in details
200Comparison result
detailsobjectoptional
Detailed change information (when requested)
leftobjectrequired
Left/local document state
parentobjectrequired
Most recent common ancestor state
rightobjectrequired
Right/remote document state
summarystringrequired
Relationship summary:
- same: documents have the same most recent state
- left: the left document has actions not yet in the right
- right: the right document has actions not yet in the left
- both: both documents have changes (possible divergence)
- unrelated: no common history found
403Insufficient access to compare documents
Error handling
A 403 is returned: Insufficient access to compare documents.
