Update Associations in a Deal



when i use the API https://developers.hubspot.com/docs/methods/deals/associate_deal all
all the previous contacts / companies association are deleted or the posted associations are added to the existing?

I need to sync with our legacy CRM and the contacts / companies could be changed from our system.



Hi @enrico.bianchetti,

Using the associate deal endpoint to associate a deal with another object will add associations to existing associations, it will not clear/delete any existing associations.


Thanks @Derek_Gervais,
not good news.
So i need to goes by differences for sync with our system.


Hi @enrico.bianchetti,

If I’m understanding correctly, you want to replace existing associations with your own? What you could do is use the Remove Association endpoint to disassociate the deal from it’s existing associations, and then update the deal with your new associations from your legacy CRM.


Thanks @Derek_Gervais , you’ll right.