Versions

Create a named note version

Create a named version from live note content or an existing saved version. When live note content has changed, this creates and names a new saved version. When live content matches the latest system version, that version is named in place and returned with 201. When it matches the latest user-named version, the response is 409 no_content_change. Naming an already named version:{id} returns 409 version_already_named.

post/notes/{noteId}/versions

Request

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

Path parameters

noteIdstring required

Request body

basestring

Saved content to name. Accepts note_content or version:{id}.

namestring required
descriptionstring

Response

Created

idstring required
namestring required
name_source'user' | 'system' required
descriptionstring nullable
created_atstring required
content_availableboolean required

Changes

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