HubSpot · JSON Structure

Hubspot Crm Associations Association Structure

Represents an association between two CRM objects

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

Association is a JSON Structure definition published by HubSpot, describing 2 properties, of which 2 are required. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.

Properties

toObjectId associationTypes

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

JSON Structure

Raw ↑
{
  "type": "object",
  "description": "Represents an association between two CRM objects",
  "name": "Association",
  "properties": {
    "toObjectId": {
      "type": "string",
      "description": "ID of the target object"
    },
    "associationTypes": {
      "type": "array",
      "description": "Types of associations between the objects",
      "items": {
        "type": "object",
        "description": "Defines the type of association",
        "properties": {
          "associationCategory": {
            "type": "string",
            "description": "Category of the association type",
            "enum": [
              "HUBSPOT_DEFINED",
              "USER_DEFINED",
              "INTEGRATOR_DEFINED"
            ]
          },
          "associationTypeId": {
            "type": "integer",
            "description": "Numeric identifier for the association type"
          },
          "label": {
            "type": "string",
            "description": "Human-readable label for the association"
          }
        },
        "required": [
          "associationCategory",
          "associationTypeId"
        ]
      }
    }
  },
  "required": [
    "toObjectId",
    "associationTypes"
  ],
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}