Create

PUT {{baseUrl}}/crm/v4/objects/:objectType/:objectId/associations/:toObjectType/:toObjectId

Set association labels between two records.

Request Body

{"0"=>{"associationCategory"=>"USER_DEFINED", "associationTypeId"=>"<integer>"}, "1"=>{"associationCategory"=>"HUBSPOT_DEFINED", "associationTypeId"=>"<integer>"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;fromObjectId&quot;:&quot;\u003clong\u003e&quot;,&quot;fromObjectTypeId&quot;:&quot;\u003cstring\u003e&quot;,&quot;labels&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;toObjectId&quot;:&quot;\u003clong\u003e&quot;,&quot;toObjectTypeId&quot;:&quot;\u003cstring\u003e&quot;}