I am not a developer, but working with a team of devs internally. We are creating Contacts in Hubspot via the API and associating them with existing Companies with the following call:
put
/crm/v3/objects/contacts/{contactId}/associations/companies/{companyId}/1
This should set the association to primary with the associationTypeId = 1.
As documented here:
However, if the Contact’s email domain does not match the one on the Company, Hubspot’s automatic association will ALSO create another Company and connect the Contact to that Company as the PRIMARY association.
We need to avoid this at all cost as we have other processes which depend on the correct associationTypeId.
Thanks in advance!
Andrew