I think you should switch to the more recent associations v3 API instead of the legacy one. From the V3 and onwards, you don't need to rely on the old associationTypeID.
Instead you use : fromObjectType, toObjectType in the endpoint URL as well as the "type" in the body. You can hardcode these parameters as the native objects surely won't have their type change in the future.
Hope this helps, and if it does, please consider marking this as a solution
Have a good day,
Ludwig
CTO @ Mi4 Hubspot Platinum Partner and Integration Expert
Passionate human, very curious about everything data and automation.
How often do the AssociationTypeIDs that were created by Hubspot change?
Hi! I don't wanna create an association as entity Hubspot, i wanna create an association between call and companies or contact. To do this, I need to pass: CallId ObjectId associationTypeId, <---- Can i hardcode this param? Now i use 194 for call_to_contact and 182 for call_to_companie ObjectType