I created an association between the company and the contact using the API with the primary contact association label. In the API response, I can see that the labels include the primary label, which indicates success. However, when I check in the HubSpot portal, I only see the custom label.
Could you help me understand what I might have done wrong?
My goal is to assign two labels to one of the contacts. If I replace the primary label with another custom label, both labels appear correctly. But when I use the primary label, only the custom label shows up.
Here is the request
POST -{{baseUrl}}/crm/v4/associations/contact/company/batch/create
{
“inputs”: [
{
“from”: {
“id”: “148790155547”
},
“to”: {
“id”: “38420008493”
}
,
“types”: [
{
“associationCategory”: “HUBSPOT_DEFINED”,
“associationTypeId”: “1”
},
{
“associationCategory”: “USER_DEFINED”,
“associationTypeId”: “2097”
}
]
},
{
“from”: {
“id”: “149004007479”
},
“to”: {
“id”: “38420008493”
}
,
“types”: [
{
“associationCategory”: “USER_DEFINED”,
“associationTypeId”: “2101”
}
]
}
]
}
Response
{
“completedAt”: “2025-08-22T07:57:57.176Z”,
“status”: “COMPLETE”,
“requestedAt”: null,
“startedAt”: “2025-08-22T07:57:57.068Z”,
“links”: {},
“results”: [
{
“fromObjectTypeId”: “0-1”,
“fromObjectId”: 149004007479,
“toObjectTypeId”: “0-2”,
“toObjectId”: 38420008493,
“labels”: [
“Director 3”
]
},
{
“fromObjectTypeId”: “0-1”,
“fromObjectId”: 148790155547,
“toObjectTypeId”: “0-2”,
“toObjectId”: 38420008493,
“labels”: [
“Director 5”,
“Primary”
]
}
],
“errors”: []
}