Skip to main content
POST
Post Activity To Material Link

Authorizations

Authorization
string
header
required

A JWT Bearer token header for authentication and authorization, in the format Authorization: Bearer <token>

Headers

x-client-secret
string
required

A secret token identifying the client connecting to the API

Example:

"Syou3EZiO5vuMEgNyBeA8cjEMYOnQDwP"

Path Parameters

project_id
string
required
Required string length: 20 - 37
Examples:

"prj_1CTWZQGKE1S0VAXA"

"prj_1E0QTWB22SBX34D1"

Body

application/json

The type of the activity-to-material link. Either references or outputs. Use GET /projects/{project_id}/supported_activity_types to discover which activity types can link to material types in your project.

source_activity_id
string
required

The ID of the source activity in an activity-to-material link.

Required string length: 20 - 37
Examples:

"atv_1CEGPMJQF1S0EHG0"

"atv_1EQ9F8WQ7SBXE3JC"

target_material_id
string
required

The ID of the target material in an activity-to-material link.

Required string length: 20 - 37
Examples:

"mtr_1DEK71X6W1S0PNYJ"

"mtr_1FFT1GGERSBXRMKH"

Response

Successful Response

id
string
required
Required string length: 20 - 37
Examples:

"atm_1DBHDB9AT1S0SQW5"

"atm_1CPBWFKHDSBX1KMB"

The type of the activity-to-material link. Either references or outputs. Use GET /projects/{project_id}/supported_activity_types to discover which activity types can link to material types in your project.

project_id
string
required
Required string length: 20 - 37
Examples:

"prj_1CTWZQGKE1S0VAXA"

"prj_1E0QTWB22SBX34D1"

source_activity_id
string
required

The ID of the source activity in an activity-to-material link.

Required string length: 20 - 37
Examples:

"atv_1CEGPMJQF1S0EHG0"

"atv_1EQ9F8WQ7SBXE3JC"

target_material_id
string
required

The ID of the target material in an activity-to-material link.

Required string length: 20 - 37
Examples:

"mtr_1DEK71X6W1S0PNYJ"

"mtr_1FFT1GGERSBXRMKH"