We’ve created a cutom object (called Campaign) using API. Inserted couple of contacts using hubspot UI. Then, created couple of Campaigns using API. We then went into Hubspot’s UI and assigned contacts to a Campaign.
My question is:
Shouldn’t Custom Objects have default associations to Contacts? And if so, shouldn’t this API call return something:
curl --request GET \
--url 'https://api.hubapi.com/crm/v3/objects/campaign/1977007899/associations/contact?limit=500&hapikey=27f27092-...........'
because right now it returns:
{
"results": []
}
Our end goal is to associate a list of contacts with different Campaigns (aka custom object) and consequently have the ability to GET a list of contacts associated to a particular Campaign.
We’ve tried both API v3 and v4 with no luck.