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"=>"INTEGRATOR_DEFINED", "associationTypeId"=>"<integer>"}, {"associationCategory"=>"HUBSPOT_DEFINED", "associationTypeId"=>"<integer>"}]}, {"from"=>{"id"=>"<string>"}, "to"=>{"id"=>"<string>"}, "types"=>[{"associationCategory"=>"HUBSPOT_DEFINED", "associationTypeId"=>"<integer>"}, {"associationCategory"=>"HUBSPOT_DEFINED", "associationTypeId"=>"<integer>"}]}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"completedAt":"\u003cdateTime\u003e","results":[{"fromObjectId":"\u003cinteger\u003e","fromObjectTypeId":"\u003cstring\u003e","labels":["\u003cstring\u003e","\u003cstring\u003e"],"toObjectId":"\u003cinteger\u003e","toObjectTypeId":"\u003cstring\u003e"},{"fromObjectId":"\u003cinteger\u003e","fromObjectTypeId":"\u003cstring\u003e","labels":["\u003cstring\u003e","\u003cstring\u003e"],"toObjectId":"\u003cinteger\u003e","toObjectTypeId":"\u003cstring\u003e"}],"startedAt":"\u003cdateTime\u003e","status":"COMPLETE","requestedAt":"\u003cdateTime\u003e","links":{"elit_0":"\u003cstring\u003e","eiusmod0":"\u003cstring\u003e"}}