younifyd
Menu

Post /crm/v3/associations/{from Object Type}/{to Object Type}/batch/create Create

Associate records (labelled)

POST/crm/v3/associations/{fromObjectType}/{toObjectType}/batch/create

Use it in a workflow

  1. Add a step and choose the HubSpot connector.
  2. Pick the Post /crm/v3/associations/{from Object Type}/{to Object Type}/batch/create Create action (under Associations).
  3. Fill in the fields below, then reference the result from later steps as {{postCrmV3AssociationsFromObjectTypeToObjectTypeBatchCreateCreate.response.data}}.

Request

Path parameters

fromObjectTypestringrequired
toObjectTypestringrequired

Request body

Enter the body as JSON in the step's Body field.

inputsarray<object>required
fromobjectrequired1 fields

Contains the Id of a Public Object

toobjectrequired1 fields

Contains the Id of a Public Object

typestringrequired
json
{
  "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>}}.

completedAtstring (date-time)
linksobject
requestedAtstring (date-time)
resultsarray<object>
fromobjectrequired1 fields

Contains the Id of a Public Object

toobjectrequired1 fields

Contains the Id of a Public Object

typestringrequired
startedAtstring (date-time)
statusstring

One ofCANCELEDCOMPLETEPENDINGPROCESSING

json
{
  "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.