latestOpenAPI 3.0.02026-08-10330179317.3 KB

0534e4d70b77

Attachments

Link an attachment to an attachment element

This endpoint links an existing attachment with a specified attachment element by their IDs.

Important Note:

An attachment can only be linked with an attachment element on the same page (such as an experiment, protocol, report, or document) where it was initially uploaded.

Before linking the attachment, ensure that the target section and attachment element are already in place; if not, create them beforehand.

To do this, use the "Add a section" and "Add element" requests. For further instructions, refer to our article on Uploading Files to Experiments via API .

put/api/v1/attachments/{id}

Path parameters

idinteger required

The ID of the attachment to be linked with the attachment element

Request body

tokenstring required

Example request

{
  "token": "YOUR TOKEN IS HERE"
}

Response

OK