Create a connection
POST https://api.copper.com/developer_api/v1/related_links
Once you have created connect fields, use the create a connection API to add connections to the connect field.
Request Body
| {
"custom_field_definition_id": 169,
"source": {
"id": 1001,
"entity_type": "lead"
},
"target": {
"id": 1002,
"entity_type": "lead"
}
}
|
Example Requests
Create a new connection
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 | curl --request POST "https://api.copper.com/developer_api/v1/related_links" \
--header "X-PW-AccessToken: YOUR_TOKEN_HERE" \
--header "X-PW-Application: developer_api" \
--header "X-PW-UserEmail: YOUR_EMAIL_HERE" \
--header "Content-Type: application/json" \
--data "{
\"custom_field_definition_id\": 169,
\"source\": {
\"id\": 1001,
\"entity_type\": \"lead\"
},
\"target\": {
\"id\": 1002,
\"entity_type\": \"lead\"
}
}
"
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14 | {
"id": 2103,
"custom_field_definition_id": 169,
"source": {
"id": 1001,
"entity_type": "lead",
"name": "1001"
},
"target": {
"id": 1002,
"entity_type": "lead",
"name": "1002"
}
}
|