0

This problem is really bugging me, i'm a hobby programmer who right now is trying to follow the simple instructions of Hubspots CRM API documentation.

I've managed to retrieve and POST information from and to Hubspot using cURL/PHP, but now i'm facing an update(PUT) and i can figure it out.

I'm trying to associate a "Deal" with a "Contact" inside the CRM, it seems to be so easy, just fire away a url? :)

The documentation on the API says:

Note: You only need to use this endpoint when updating existing deal records. If you are creating new deals, you can make these associations when creating the record by including the associations data as documented on the create deal page."

src: https://developers.hubspot.com/docs/methods/deals/associate_deal

Do i understand correctly, i tried to use this URL in my browser and expected an update to happen?

https://api.hubapi.com/deals/v1/deal/DEALID/associations/CONTACT?id=CONTACTID&hapikey=MyKey

The response i got in the browsers console was: 405 (Method not allowed).

I tried to fire the url though cURL aswell, but got lost right away because i dont really have any data to send in "CURLOPT" parameters, the data should, if i understand correctly be inside the endpoint url.

If you have any idea of what this hobby programmer doesnt understand, please reply :)

Kind regards,

Simon

0 Answers0