Menu
Post /crm/v3/associations/{from Object Type}/{to Object Type}/batch/create Create
Associate records (labelled)
POST
/crm/v3/associations/{fromObjectType}/{toObjectType}/batch/createUse it in a workflow
- Add a step and choose the HubSpot connector.
- Pick the Post /crm/v3/associations/{from Object Type}/{to Object Type}/batch/create Create action (under Associations).
- Fill in the fields below, then reference the result from later steps as
{{postCrmV3AssociationsFromObjectTypeToObjectTypeBatchCreateCreate.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"inputs": [
{
"from": {
"id": "53628"
},
"to": {
"id": "12726"
},
"type": "contact_to_company"
}
]
}
Response
Returns 201 with an object. Read it in later steps with {{postCrmV3AssociationsFromObjectTypeToObjectTypeBatchCreateCreate.response.data.<field>}}.
{
"completedAt": "2025-01-01T00:00:00Z",
"results": [
{
"from": {
"id": "53628"
},
"to": {
"id": "12726"
},
"type": "contact_to_company"
}
],
"startedAt": "2025-01-01T00:00:00Z",
"status": "CANCELED",
"links": {},
"requestedAt": "2025-01-01T00:00:00Z"
}
Need more? See the HubSpot guide for connection setup and behaviour shared by every action.
Was this page helpful?