Skip to main content
POST
Post Activity To Activity 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-activity link. Either parent_of or follows. Use GET /projects/{project_id}/supported_activity_types to discover which activity types can link to each other in your project.

source_activity_id
string
required

The ID of the source activity in an activity-to-activity link. For a parent_of link, this is the parent activity. For a follows link, this is the following activity.

Required string length: 20 - 37
Examples:

"atv_1CEGPMJQF1S0EHG0"

"atv_1EQ9F8WQ7SBXE3JC"

target_activity_id
string
required

The ID of the target activity in an activity-to-activity link. For a parent_of link, this is the child activity. For a follows link, this is the preceding activity.

Required string length: 20 - 37
Examples:

"atv_1CEGPMJQF1S0EHG0"

"atv_1EQ9F8WQ7SBXE3JC"

Response

Successful Response

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

"ata_1CVGAAXTW1S0GG8H"

"ata_1CWC56M02SBX42NE"

The type of the activity-to-activity link. Either parent_of or follows. Use GET /projects/{project_id}/supported_activity_types to discover which activity types can link to each other 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-activity link. For a parent_of link, this is the parent activity. For a follows link, this is the following activity.

Required string length: 20 - 37
Examples:

"atv_1CEGPMJQF1S0EHG0"

"atv_1EQ9F8WQ7SBXE3JC"

target_activity_id
string
required

The ID of the target activity in an activity-to-activity link. For a parent_of link, this is the child activity. For a follows link, this is the preceding activity.

Required string length: 20 - 37
Examples:

"atv_1CEGPMJQF1S0EHG0"

"atv_1EQ9F8WQ7SBXE3JC"