Skip to main content
Add an attachment to 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

id
string
required

Identifier of the document the attachment should be added to.

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

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

Body

application/json
fileHash
string
required

Hash of the file to attach, as returned when the file was uploaded.

Minimum string length: 1
Pattern: ^[a-z0-9]+$
Example:

"s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj"

name
string
required

Name the attachment is listed and downloaded under. It need not match the name the file was uploaded with.

Minimum string length: 1
Example:

"Supporting Documentation.pdf"

public
boolean

Whether the attachment is visible outside its own organization - to users of other organizations in the tenant and to external recipients of a share. Left off, it stays visible only to the person who attached it and to their own organization.

Response

The attachment was added to the document.

status
string

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

Example:

"SUCCESS"