crm_batch_create_associations
Create multiple associations between CRM objects in HubSpot with a single API request, streamlining data connections and improving efficiency.
Instructions
Create multiple associations in a single request
Input Schema
Name | Required | Description | Default |
---|---|---|---|
fromObjectType | Yes | ||
inputs | Yes | ||
toObjectType | Yes |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"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"
}