curl --request POST \
--url https://services.leadconnectorhq.com/associations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"locationId": "string",
"key": "student_teacher",
"firstObjectLabel": "student",
"firstObjectKey": "custom_objects.children",
"secondObjectLabel": "Teacher",
"secondObjectKey": "contact"
}
'{
"locationId": "string",
"id": "ve9EPM428h8vShlRW1KT",
"key": "student",
"firstObjectLabel": "student",
"firstObjectKey": "custom_objects.children",
"secondObjectLabel": "Teacher",
"secondObjectKey": "contact",
"associationType": "USER_DEFINED"
}Allow you to create contact - contact , contact - custom objects associations, will add more in the future.Documentation Link - https://doc.clickup.com/8631005/d/h/87cpx-293776/cd0f4122abc04d3
curl --request POST \
--url https://services.leadconnectorhq.com/associations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"locationId": "string",
"key": "student_teacher",
"firstObjectLabel": "student",
"firstObjectKey": "custom_objects.children",
"secondObjectLabel": "Teacher",
"secondObjectKey": "contact"
}
'{
"locationId": "string",
"id": "ve9EPM428h8vShlRW1KT",
"key": "student",
"firstObjectLabel": "student",
"firstObjectKey": "custom_objects.children",
"secondObjectLabel": "Teacher",
"secondObjectKey": "contact",
"associationType": "USER_DEFINED"
}Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.
API Version
2021-07-28 "string"
Association's Unique key
"student_teacher"
First Objects Association Label (custom_objects.children)
"student"
First Objects Key
"custom_objects.children"
Second Object Association Label (contact)
"Teacher"
Second Objects Key
"contact"
Successful response
"string"
"ve9EPM428h8vShlRW1KT"
First Objects Association Label (custom_objects.children)
"student"
First Objects Association Label (custom_objects.children)
"student"
First Objects Key
"custom_objects.children"
Second Object Association Label (contact)
"Teacher"
Second Objects Key
"contact"
Association Type can be USER_DEFINED or SYSTEM_DEFINED
"USER_DEFINED"
Was this page helpful?