Skip to main content
Update a document and act on its 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.

Path Parameters

version
integer
required

Version of the document being updated. It guards the update from overwriting changes the caller has not seen.

Required range: x > 0
Example:

6

Body

application/json
definitionType
string
required

Flavour of the document - edoc for a document whose content the system generates from its metadata definition, ext for a document built around an uploaded main file.

Example:

"ext"

id
string
required

Identifier of the document being updated.

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

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

actionId
integer | null

Workflow action to execute once the document has been updated, taken from the actions the document's current state offers.

Required range: x >= 0
Example:

3

addMentionRights
boolean

Grants read access to the users mentioned in the accompanying comment, so a mention does not point at a document its subject cannot open.

body
object

New content of the document - the fields of its metadata definition together with its main file, attachments and submitted files.

comment
string

Comment stored on the workflow history record this update creates. 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>."

draftId
string

Identifier of the draft that holds the content prepared for this update. The draft is deleted once the update has been applied.

Example:

"8b312068-ecdf-4fa6-8f13-c6183da85f43"

forcePdfA
boolean | null
default:false

Together with usePdfA, converts an already-signed main file to PDF/A as well, even though the conversion removes the existing signature. Without it such a file is left unconverted so that its signature survives.

Example:

false

groupReceiver
string[]

Groups the executed action is addressed to; any of their members may take it from there.

Example:
isPublicComment
boolean
default:false

Whether comment is visible to external recipients who open the document through a share. A comment that is not public is hidden from them.

Example:

false

optionalData
object

Options applied alongside the document itself - folder placement, tags, sign fields, signatures, annotations and images.

receiver

Users the executed action is addressed to.

Username that uniquely identifies a user in the system. Usually an email address. A single "+" sub-addressing tag (RFC 5233) is allowed in the local part.

Minimum string length: 1
Pattern: ^[A-Za-z0-9.@_+-]+$
usePdfA
boolean | null

Keeps the document's main file in PDF/A, the format suited to long-term archiving. The conversion re-renders the file, so its visual appearance may change. When omitted, the setting the document already carries is kept; once enabled it cannot be turned off again.

Response

The document was updated and the action executed.

status
string

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

Example:

"SUCCESS"