I’m trying to set up an association between a Contact and Communication. For outbound SMS I’m tagging them as `{ associationCategory: “HUBSPOT_DEFINED”, associationTypeId: 81}` which works fine. I want to then tag incoming SMS messages and differentiate them.
Since the Hubspot defined one is generic, I attempted to make a new one via `/crm/v4/associations/contacts/Communications/labels`, but when I do I get the following error:
“Invalid object type pair for custom association definition as unlabeled definition doesn’t exist for CONTACT → COMMUNICATION association”
If I query `/crm/v4/associations/contacts/Communications/labels` with a GET request I get one result back:
{ results: [ { category: "HUBSPOT_DEFINED", typeId: 82, label: null, }, ],}
Ignoring that the `typeId` is different (82 never works for me, but 81 does, which matches the docs), I see that the label is null, but the `POST` request seems to think there isn’t an existing blank label.
I’m following the directions at https://developers.hubspot.com/docs/api/crm/associations for creating new association labels.