Read
POST {{baseUrl}}/crm/v4/associations/:fromObjectType/:toObjectType/batch/read
Batch read associations for objects to specific object type. The 'after' field in a returned paging object can be added alongside the 'id' to retrieve the next page of associations from that objectId. The 'link' field is deprecated and should be ignored.
Request Body
{"inputs"=>[{"id"=>"<string>", "after"=>"<string>"}, {"id"=>"<string>", "after"=>"<string>"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"completedAt":"\u003cdateTime\u003e","results":[{"from":{"id":"\u003cstring\u003e"},"to":[{"associationTypes":[{"category":"HUBSPOT_DEFINED","typeId":"\u003cinteger\u003e","label":"\u003cstring\u003e"},{"category":"INTEGRATOR_DEFINED","typeId":"\u003cinteger\u003e","label":"\u003cstring\u003e"}],"toObjectId":"\u003cinteger\u003e"},{"associationTypes":[{"category":"USER_DEFINED","typeId":"\u003cinteger\u003e","label":"\u003cstring\u003e"},{"category":"USER_DEFINED","typeId":"\u003cinteger\u003e","label":"\u003cstring\u003e"}],"toObjectId":"\u003cinteger\u003e"}],"paging":{"next":{"after":"\u003cstring\u003e","link":"\u003cstring\u003e"},"prev":{"before":"\u003cstring\u003e","link":"\u003cstring\u003e"}}},{"from":{"id":"\u003cstring\u003e"},"to":[{"associationTypes":[{"category":"INTEGRATOR_DEFINED","typeId":"\u003cinteger\u003e","label":"\u003cstring\u003e"},{"category":"USER_DEFINED","typeId":"\u003cinteger\u003e","label":"\u003cstring\u003e"}],"toObjectId":"\u003cinteger\u003e"},{"associationTypes":[{"category":"HUBSPOT_DEFINED","typeId":"\u003cinteger\u003e","label":"\u003cstring\u003e"},{"category":"USER_DEFINED","typeId":"\u003cinteger\u003e","label":"\u003cstring\u003e"}],"toObjectId":"\u003cinteger\u003e"}],"paging":{"next":{"after":"\u003cstring\u003e","link":"\u003cstring\u003e"},"prev":{"before":"\u003cstring\u003e","link":"\u003cstring\u003e"}}}],"startedAt":"\u003cdateTime\u003e","status":"CANCELED","requestedAt":"\u003cdateTime\u003e","links":{"dolor_3d":"\u003cstring\u003e","ad_9d":"\u003cstring\u003e"}}