{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/hubspot/refs/heads/main/json-schema/crm-associations-api-create-association-input-schema.json", "title": "CreateAssociationInput", "description": "Input for creating an association", "type": "object", "properties": { "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", "items": { "type": "object", "description": "Input for specifying an association type", "properties": { "associationCategory": { "type": "string", "enum": [ "HUBSPOT_DEFINED", "USER_DEFINED", "INTEGRATOR_DEFINED" ], "example": "HUBSPOT_DEFINED" }, "associationTypeId": { "type": "integer", "example": 500123 } }, "required": [ "associationCategory", "associationTypeId" ] }, "description": "Association types to create", "example": [ { "associationCategory": "HUBSPOT_DEFINED", "associationTypeId": 500123 } ] } }, "required": [ "to", "types" ] }