Skip to main content
Replace or rename a document attachment

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 being updated, as it stands in the document now. Pass the same value in fileHash to keep the file and change only its other properties.

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

"s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj"

id
string
required

Identifier of the document the attachment belongs 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 updated.

status
string

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

Example:

"SUCCESS"