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

hash
string
required

Hash of the attachment to remove, as carried by the document's file entries.

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

"s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj"

id
string
required

Identifier of the document the attachment should be removed from.

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

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

version
integer
required

Version of the document the removal is based on, as returned when the document was read. A stale value is rejected instead of overwriting a concurrent change.

Required range: x > 0
Example:

6

Response

The attachment was removed from the document and its file deleted.

status
string

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

Example:

"SUCCESS"