Skip to main content
Cancel and archive a document workflow

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.

Body

application/json
id
string
required

Identifier of the document whose workflow to cancel.

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

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

comment
string

Reason for the cancellation, recorded in the document history along with it. 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>."

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

Response

The workflow was cancelled and the document archived.

status
string

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

Example:

"SUCCESS"