Create

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

Set association labels between two records.

Request Body

[{"associationCategory"=>"HUBSPOT_DEFINED", "associationTypeId"=>"<integer>"}, {"associationCategory"=>"USER_DEFINED", "associationTypeId"=>"<integer>"}]

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

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