Create Relation for you associated entities.

POSThttps://services.leadconnectorhq.com/associations/

Create Relation.Documentation Link - https://doc.clickup.com/8631005/d/h/87cpx-293776/cd0f4122abc04d3

Request

Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.

Provide your bearer token in the Authorization header when making requests to protected resources.

Example: Authorization: Bearer 123
Query Parameters
locationId
string
required

Your Sub Account's ID

Example:
clF1LD04GTUKN3b3XuOj
associationId
string
required

Association's Id

Example:
ve9EPM428h8vShlRW1KT
firstRecordId
string
required

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

Example:
ve9EPM428h8vShlRW1KT
secondRecordId
string
required

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

Example:
ve9EPM428h8vShlRW1KT
Headers
Authorization
string
required

Access Token

Example:
Bearer 9c48df2694a849b6089f9d0d3513efe
Version
string
required

API Version

Allowed value:
2021-07-28

Responses

Successful response

locationId
string
required
Example:
string
id
string
required
Example:
ve9EPM428h8vShlRW1KT
key
string
required

First Objects Association Label (custom_objects.children)

Example:
student
firstObjectLabel
object
required

First Objects Association Label (custom_objects.children)

Example:
student
firstObjectKey
object
required

First Objects Key

Example:
custom_objects.children
secondObjectLabel
object
required

Second Object Association Label (contact)

Example:
Teacher
secondObjectKey
object
required

Second Objects Key

Example:
contact
associationType
object
required

Association Type can be USER_DEFINED or SYSTEM_DEFINED

Example:
USER_DEFINED

Unprocessable Entity

statusCode
number
Example:
422
message
array[string]
Example:
["Unprocessable Entity"]
error
string
Example:
Unprocessable Entity

Unauthorized

statusCode
number
Example:
401
message
string
Example:
Invalid token: access token is invalid
error
string
Example:
Unauthorized

Bad Request

statusCode
number
Example:
400
message
string
Example:
Bad Request