APIs & Integrations

GDesai7
Participante

Create association cURL Api gives 500 when associating deal_to_contact

resolver

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.

0 Avaliação positiva
1 Solução aceita
tominal
Solução
Orientador(a) | Parceiro
Orientador(a) | Parceiro

Create association cURL Api gives 500 when associating deal_to_contact

resolver

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.

 

tominal_0-1669059473031.png

 

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!


Thomas Johnson
Community Champion


Kahu Software LLC
A Texan HubSpot consulting firm
https://kahusoftware.com

Exibir solução no post original

2 Respostas 2
tominal
Solução
Orientador(a) | Parceiro
Orientador(a) | Parceiro

Create association cURL Api gives 500 when associating deal_to_contact

resolver

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.

 

tominal_0-1669059473031.png

 

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!


Thomas Johnson
Community Champion


Kahu Software LLC
A Texan HubSpot consulting firm
https://kahusoftware.com
GDesai7
Participante

Create association cURL Api gives 500 when associating deal_to_contact

resolver

@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.

0 Avaliação positiva