crm_batch_archive_associations
Archive multiple associations in HubSpot CRM in a single request by specifying object types and IDs to streamline data management and cleanup tasks.
Instructions
Archive (delete) 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"
}
},
"required": [
"from",
"to"
],
"type": "object"
},
"type": "array"
},
"toObjectType": {
"enum": [
"companies",
"contacts",
"deals",
"tickets",
"products",
"line_items",
"quotes",
"custom"
],
"type": "string"
}
},
"required": [
"fromObjectType",
"toObjectType",
"inputs"
],
"type": "object"
}