curl --request PUT \
--url https://api.hubapi.com/crm-associations/v1/associations \
--header 'Content-Type: application/json' \
--data '
{
"fromObjectId": "<string>",
"toObjectId": "<string>",
"category": "<string>",
"definitionId": "<string>"
}
'{
"fromObjectId": 496346,
"toObjectId": 176602,
"category": "HUBSPOT_DEFINED",
"definitionId": 15
}This endpoint is used to associate two CRM objects. Use case for this endpoint: You can use this endpoint to associate a ticket with a contact or to associate a line item with a deal. See all possible associations on the CRM Associations Overview. If you need to make multiple associations (either to the same object or across multiple objects) you can use the batch associations endpoint.
curl --request PUT \
--url https://api.hubapi.com/crm-associations/v1/associations \
--header 'Content-Type: application/json' \
--data '
{
"fromObjectId": "<string>",
"toObjectId": "<string>",
"category": "<string>",
"definitionId": "<string>"
}
'{
"fromObjectId": 496346,
"toObjectId": 176602,
"category": "HUBSPOT_DEFINED",
"definitionId": 15
}The ID of the object being associated.
The ID of the object the from object is being associated with.
The category of the association. Currently this must be "HUBSPOT_DEFINED"
The ID of the association definition. See the table on the overview page for a list of these IDs.
Successful response - This endpoint is used to associate two CRM objects
The response is of type object.
Was this page helpful?