Versions

Compare note versions

Compare two saved versions or a saved version with live note content.

get/notes/{noteId}/versions/compare

Request

  • Base URL: https://api.hackmd.io/v1
  • URL: https://api.hackmd.io/v1/notes/{noteId}/versions/compare
  • Auth: HTTP bearer

Path parameters

noteIdstring required

Query parameters

basestring required

Required comparison source. Use note_content or version:{id}.

targetstring required

Required comparison target. Use note_content or version:{id}.

Response

Ok

unified_diffstring required

Changes

No recorded changes to this operation across all 1 revision of this API.