curl --request POST \
--url https://services.leadconnectorhq.com/associations/relations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"locationId": "clF1LD04GTUKN3b3XuOj",
"associationId": "ve9EPM428h8vShlRW1KT",
"firstRecordId": "ve9EPM428h8vShlRW1KT",
"secondRecordId": "ve9EPM428h8vShlRW1KT"
}
'{
"locationId": "string",
"id": "ve9EPM428h8vShlRW1KT",
"key": "student",
"firstObjectLabel": "student",
"firstObjectKey": "custom_objects.children",
"secondObjectLabel": "Teacher",
"secondObjectKey": "contact",
"associationType": "USER_DEFINED"
}Create Relation.Documentation Link - https://doc.clickup.com/8631005/d/h/87cpx-293776/cd0f4122abc04d3
curl --request POST \
--url https://services.leadconnectorhq.com/associations/relations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"locationId": "clF1LD04GTUKN3b3XuOj",
"associationId": "ve9EPM428h8vShlRW1KT",
"firstRecordId": "ve9EPM428h8vShlRW1KT",
"secondRecordId": "ve9EPM428h8vShlRW1KT"
}
'{
"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 Your Sub Account's ID
"clF1LD04GTUKN3b3XuOj"
Association's Id
"ve9EPM428h8vShlRW1KT"
First Record's Id. For instance, if you have an association between a contact and a custom object, and you specify the contact as the first object while creating the association, then your firstRecordId would be the contactId
"ve9EPM428h8vShlRW1KT"
Second Record's Id.For instance, if you have an association between a contact and a custom object, and you specify the custom object as the second entity while creating the association, then your secondRecordId would be the customObject record Id
"ve9EPM428h8vShlRW1KT"
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?