Hello,
Could you tell me what is the difference between the three association categories (“HUBSPOT_DEFINED”, “USER_DEFINED”, and “INTEGRATOR_DEFINED”)?
I tried adding a contact with an association, but it works only with the “HUBSPOT_DEFINED” association category. I make the following request:
curl --location 'https://api.hubapi.com/crm/v3/objects/contacts' \
--header 'authorization: Bearer {token}' \
--header 'content-type: application/json' \
--data '{
"associations": [
{
"types": [
{
"associationCategory": "HUBSPOT_DEFINED",
"associationTypeId": 1
}
],
"to": {
"id": "{companyId}"
}
}
],
"properties": {
"lastname": "John",
"firstname": "Doe"
}
}'
If I change the category to “INTEGRATOR_DEFINED” the API returns the following error:
“Cannot get definitions for unsupported categories: [INTEGRATOR_DEFINED]”
And if I change the category to “USER_DEFINED” the API returns another error:
“Invalid association spec: AssociationSpec{associationCategory=USER_DEFINED, associationTypeId=1}”
I’m a bit confused about how the categories are used. I can’t find information about them in the documentation, so I would be grateful if someone could explain the difference between the three categories and why, in my case, it only works with “HUBSPOT_DEFINED”.
Thanks in advance!
Best,
Rosen Ivanov