HubSpot · JSON Structure

Hubspot Crm Associations Association Definition Structure

Definition of an association type between two object types

Type: object Properties: 7 Required: 3
AnalyticsCommerceContentCRMCustomer ServiceEmail MarketingMarketingMarketing AutomationOperationsSales

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

Properties

id fromObjectTypeId toObjectTypeId name label inverseLabel category

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

JSON Structure

Raw ↑
{
  "type": "object",
  "description": "Definition of an association type between two object types",
  "name": "AssociationDefinition",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the association definition"
    },
    "fromObjectTypeId": {
      "type": "string",
      "description": "Source object type ID"
    },
    "toObjectTypeId": {
      "type": "string",
      "description": "Target object type ID"
    },
    "name": {
      "type": "string",
      "description": "Name of the association type"
    },
    "label": {
      "type": "string",
      "description": "Display label for the association"
    },
    "inverseLabel": {
      "type": "string",
      "description": "Label for the inverse association"
    },
    "category": {
      "type": "string",
      "description": "Category of the association definition",
      "enum": [
        "HUBSPOT_DEFINED",
        "USER_DEFINED",
        "INTEGRATOR_DEFINED"
      ]
    }
  },
  "required": [
    "id",
    "fromObjectTypeId",
    "toObjectTypeId"
  ],
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}