HubSpot · JSON Structure

Crm Associations Api Batch Association Create Input Structure

Input for batch creating associations

Type: object Properties: 1 Required: 1
AnalyticsCommerceContentCRMCustomer ServiceEmail MarketingMarketingMarketing AutomationOperationsSales

BatchAssociationCreateInput is a JSON Structure definition published by HubSpot, describing 1 property, of which 1 is required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

inputs

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/hubspot/refs/heads/main/json-structure/crm-associations-api-batch-association-create-input-structure.json",
  "name": "BatchAssociationCreateInput",
  "description": "Input for batch creating associations",
  "type": "object",
  "properties": {
    "inputs": {
      "type": "array",
      "items": {
        "type": "object",
        "description": "Single item in a batch association create request",
        "properties": {
          "from": {
            "$ref": "#/components/schemas/ObjectReference"
          },
          "to": {
            "$ref": "#/components/schemas/ObjectReference"
          },
          "types": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssociationTypeInput"
            },
            "example": [
              {
                "associationCategory": "HUBSPOT_DEFINED",
                "associationTypeId": 500123
              }
            ]
          }
        },
        "required": [
          "from",
          "to",
          "types"
        ]
      },
      "description": "Associations to create",
      "example": [
        {
          "from": {},
          "to": {},
          "types": [
            {}
          ]
        }
      ]
    }
  },
  "required": [
    "inputs"
  ]
}