We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Nov 21, 2022 12:32 PM
Hi Team,
We are trying to use the associations api
PUT…/crm/v4/objects/deals/{dealId}/associations/{toObjectType}/{toObjectId}
When we try to hit this api, we get a 500 error for this.
Below is the cURL example of the query
curl --request PUT \
--url 'https://api.hubapi.com/crm/v4/objects/deals/11029435317/associations/contacts/222701?associationType...' \
--header 'authorization: Bearer OUR_TOKEN'
We are unable to figure out what the issue is, any help here would be greatly appreciated.
Solved! Go to Solution.
Nov 21, 2022 2:39 PM
Hey @GDesai7,
Well that's not good. I was able to reproduce the 500 "internal error". It had no response data to help us debug what the issue is.
If there is a time constraint to get this done on your end, I would recommend hitting the v3 batch associations. I had to do that after v4 broke one of my deals 😆
Hope that helps!
Nov 21, 2022 2:39 PM
Hey @GDesai7,
Well that's not good. I was able to reproduce the 500 "internal error". It had no response data to help us debug what the issue is.
If there is a time constraint to get this done on your end, I would recommend hitting the v3 batch associations. I had to do that after v4 broke one of my deals 😆
Hope that helps!
Nov 21, 2022 3:24 PM
@tominal, thank you so much for your suggestion, you are a real life saver. Yes there was a time constraint attached to it. I can use this to complete my flow now. Much appreciated.