Skip to main content
Edit a document

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 edited. It guards the edit from overwriting changes the caller has not seen.

Required range: x > 0
Example:

6

Query Parameters

forceEdit
boolean

Goes ahead with an edit that changes the content of a document already signed or still waiting for its recipients, or that joins files into its main file, which leaves the joined file without the signatures of the one it replaces: the signatures the edit invalidates are dropped and the shares still waiting are cancelled. Without it such a document is refused.

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"

workflow
string
required

Workflow definition the document runs on.

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

"wf_archive"

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

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, merging files into the main file.

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.

status
string

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

Example:

"SUCCESS"