Skip to main content
POST
Revert a commit

Authorizations

Authorization
string
header
required

A Nemonist key (sk-nm-...) as a bearer token in the Authorization header.

Path Parameters

id
string
required

The folder's id (fld_...), as GET /folders lists it.

commit
string
required

A commit id, tag, HEAD or ~N.

Response

The new commit.

The revert commit, as GET /folders/{id}/commits/{commit} answers, and the commit it reverts.

id
string

The new commit's id.

message
string

Revert "".

reverts
string

The commit it reverts.

files
object[]

Each note edit it made; each carries reverts too.