Create

POST {{baseUrl}}/crm/v4/associations/:fromObjectType/:toObjectType/batch/create

Batch create associations for objects

Request Body

{"inputs"=>[{"from"=>{"id"=>"<string>"}, "to"=>{"id"=>"<string>"}, "types"=>[{"associationCategory"=>"HUBSPOT_DEFINED", "associationTypeId"=>"<integer>"}, {"associationCategory"=>"USER_DEFINED", "associationTypeId"=>"<integer>"}]}, {"from"=>{"id"=>"<string>"}, "to"=>{"id"=>"<string>"}, "types"=>[{"associationCategory"=>"INTEGRATOR_DEFINED", "associationTypeId"=>"<integer>"}, {"associationCategory"=>"HUBSPOT_DEFINED", "associationTypeId"=>"<integer>"}]}]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;completedAt&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;results&quot;:[{&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;},{&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;}],&quot;startedAt&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;status&quot;:&quot;PROCESSING&quot;,&quot;requestedAt&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;links&quot;:{&quot;ad_99&quot;:&quot;\u003cstring\u003e&quot;,&quot;enim_9&quot;:&quot;\u003cstring\u003e&quot;,&quot;Ut_2&quot;:&quot;\u003cstring\u003e&quot;}}