Skip to main content
RelationsVersion: v3

Create Relation for you associated entities.

POST/associations/relations

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

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Scope:associations/relation.write
Auth methods:OAuthPrivate Integration
Token type:Sub-Account Token

Request​

Headers

Versionstringrequired

API Version

Available optionsv3

Body

locationIdstringrequired

Your Sub Account's ID

Example:clF1LD04GTUKN3b3XuOj
associationIdstringrequired

Association's Id

Example:ve9EPM428h8vShlRW1KT
firstRecordIdstringrequired

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
secondRecordIdstringrequired

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

Response

Successful response

locationIdstringrequired
Example:string
idstringrequired
Example:ve9EPM428h8vShlRW1KT
keystringrequired

First Objects Association Label (custom_objects.children)

Example:student
firstObjectLabelobjectrequired

First Objects Association Label (custom_objects.children)

Example:student
firstObjectKeyobjectrequired

First Objects Key

Example:custom_objects.children
secondObjectLabelobjectrequired

Second Object Association Label (contact)

Example:Teacher
secondObjectKeyobjectrequired

Second Objects Key

Example:contact
associationTypeobjectrequired

Association Type can be USER_DEFINED or SYSTEM_DEFINED

Example:USER_DEFINED