HubSpot · JSON Structure

Hubspot Crm Associations 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/draft/2020-12/schema meta-schema.

Properties

inputs

Meta-schema: https://json-structure.org/draft/2020-12/schema

JSON Structure

Raw ↑
{
  "type": "object",
  "description": "Input for batch creating associations",
  "name": "BatchAssociationCreateInput",
  "properties": {
    "inputs": {
      "type": "array",
      "description": "Associations to create",
      "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"
              }
            },
            "required": [
              "id"
            ]
          },
          "to": {
            "type": "object",
            "description": "Reference to a CRM object by ID",
            "properties": {
              "id": {
                "type": "string",
                "description": "ID of the object"
              }
            },
            "required": [
              "id"
            ]
          },
          "types": {
            "type": "array",
            "items": {
              "type": "object",
              "description": "Input for specifying an association type",
              "properties": {
                "associationCategory": {
                  "type": "string",
                  "enum": [
                    "HUBSPOT_DEFINED",
                    "USER_DEFINED",
                    "INTEGRATOR_DEFINED"
                  ]
                },
                "associationTypeId": {
                  "type": "integer"
                }
              },
              "required": [
                "associationCategory",
                "associationTypeId"
              ]
            }
          }
        },
        "required": [
          "from",
          "to",
          "types"
        ]
      }
    }
  },
  "required": [
    "inputs"
  ],
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}