Problem with the v4 association API (Create default association)

I am trying to create a simple default “contact => company” association. But I am consistantly getting a 404, so I am obviously doing something wrong.
This is what it looks like in Postman (I get the same error in my C# code).

michaelrandrup_0-1682074263057.png

The documentation here CRM API | Associations v4 (hubspot.com) says:

So it should be a really simply call?! I hope someone out there can spot the error.
regards,
Michael

Hey, @michaelrandrup :waving_hand: Thanks for reaching out! Did you get unstuck here? If not, I can get an example using Postman for us.

You are associating an existing Contact to an existing Company, correct?

Best,

Jaycee

Hi Jaycee,
Thanks for responding! And yes, and I am sorry I forgot to close this topic down again.
It turned out that everything was working as shown, but the URL itself contained some hidden characters that was not displayed in either Postman and Visual Studio (hence the 404). I found out by copying the URL into MS word and tuning on “show hidden characters” – there’s a couple of hours I won’t get back in my life :blush:

Hi, @michaelrandrup :waving_hand: Thanks for letting us know! I’ve been down that same road. So frustrating!

Thank you, I was having the exact same issue and this comment just solved my problem. I copied the URL into sublime and typed it out, making sure both looked exactly the same. Copied my re-typed URL back to Postman, and suddenly it worked.