HubSpot · Schema

BatchAssociationCreateInput

Input for batch creating associations

AnalyticsCommerceContentCRMCustomer ServiceEmail MarketingMarketingMarketing AutomationOperationsSales

Properties

Name Type Description
inputs array Associations to create
View JSON Schema on GitHub

JSON Schema

hubspot-crm-associations-batch-association-create-input-schema.json Raw ↑
{
  "type": "object",
  "description": "Input for batch creating associations",
  "properties": {
    "inputs": {
      "type": "array",
      "description": "Associations to create",
      "example": [
        {
          "from": {},
          "to": {},
          "types": [
            {}
          ]
        }
      ],
      "items": {
        "type": "object",
        "description": "Single item in a batch association create request",
        "properties": {
          "from": {
            "type": "object",
            "description": "Reference to a CRM object by ID",
            "properties": {
              "id": {
                "type": "string",
                "description": "ID of the object",
                "example": "500123"
              }
            },
            "required": [
              "id"
            ]
          },
          "to": {
            "type": "object",
            "description": "Reference to a CRM object by ID",
            "properties": {
              "id": {
                "type": "string",
                "description": "ID of the object",
                "example": "500123"
              }
            },
            "required": [
              "id"
            ]
          },
          "types": {
            "type": "array",
            "example": [
              {
                "associationCategory": "HUBSPOT_DEFINED",
                "associationTypeId": 500123
              }
            ],
            "items": {
              "type": "object",
              "description": "Input for specifying an association type",
              "properties": {
                "associationCategory": {
                  "type": "string",
                  "example": "HUBSPOT_DEFINED",
                  "enum": [
                    "HUBSPOT_DEFINED",
                    "USER_DEFINED",
                    "INTEGRATOR_DEFINED"
                  ]
                },
                "associationTypeId": {
                  "type": "integer",
                  "example": 500123
                }
              },
              "required": [
                "associationCategory",
                "associationTypeId"
              ]
            }
          }
        },
        "required": [
          "from",
          "to",
          "types"
        ]
      }
    }
  },
  "required": [
    "inputs"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "BatchAssociationCreateInput"
}