HubSpot · Schema
BatchAssociationCreateItem
Single item in a batch association create request
AnalyticsCommerceContentCRMCustomer ServiceEmail MarketingMarketingMarketing AutomationOperationsSales
Properties
| Name | Type | Description |
|---|---|---|
| from | object | Reference to a CRM object by ID |
| to | object | Reference to a CRM object by ID |
| types | array |
JSON Schema
{
"$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-batch-association-create-item-schema.json",
"title": "BatchAssociationCreateItem",
"description": "Single item in a batch association create request",
"type": "object",
"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",
"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"
]
},
"example": [
{
"associationCategory": "HUBSPOT_DEFINED",
"associationTypeId": 500123
}
]
}
},
"required": [
"from",
"to",
"types"
]
}