Skip to main content
Restore a document to an earlier revision

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Path Parameters

id
string
required

Identifier of the document to restore.

Minimum string length: 1
Pattern: ^[A-Za-z0-9_-]+$
Example:

"a0d01c9d-f72f-4c57-af11-e26bda19cc59"

Query Parameters

comment
string

Note explaining why the document was put back, recorded in its history along with the restore. May carry basic formatting — bold, italic, underline, https links and bullet lists; everything else is stripped on input.

Maximum string length: 2000
Example:

"Processed <b>as requested</b>, see <a href=\"https://example.com/report\">the report</a>."

forceRevert
boolean
default:false

Goes ahead even with a document that has been signed here or is waiting for somebody to act on it: what it waits for is cancelled and the version from before the signatures is put back. Without it such a document is refused instead.

Example:

false

isPublicComment
boolean
default:false

Makes comment part of the history that external recipients of the document see. A comment left private stays visible only to internal users with access to the document.

Example:

false

revision
integer
required

Which revision to put the document back to, as listed in its history. It has to be older than the one the document stands at now.

Required range: x >= 0
Example:

2

Response

The document has been put back to the chosen revision.

status
string

Outcome of the operation, reported as a status type constant.

Example:

"SUCCESS"