crm_batch_create_associations
Create multiple CRM associations between different object types in a single API request to efficiently manage HubSpot relationship connections.
Instructions
Create multiple associations in a single request
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fromObjectType | Yes | ||
| toObjectType | Yes | ||
| inputs | Yes |
Input Schema (JSON Schema)
{
"properties": {
"fromObjectType": {
"enum": [
"companies",
"contacts",
"deals",
"tickets",
"products",
"line_items",
"quotes",
"custom"
],
"type": "string"
},
"inputs": {
"items": {
"additionalProperties": false,
"properties": {
"from": {
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
}
},
"required": [
"id"
],
"type": "object"
},
"to": {
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
}
},
"required": [
"id"
],
"type": "object"
},
"types": {
"items": {
"additionalProperties": false,
"properties": {
"associationCategory": {
"type": "string"
},
"associationTypeId": {
"type": "number"
}
},
"required": [
"associationCategory",
"associationTypeId"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"from",
"to",
"types"
],
"type": "object"
},
"type": "array"
},
"toObjectType": {
"enum": [
"companies",
"contacts",
"deals",
"tickets",
"products",
"line_items",
"quotes",
"custom"
],
"type": "string"
}
},
"required": [
"fromObjectType",
"toObjectType",
"inputs"
],
"type": "object"
}