The Associations API is very fussy with Association Types. Based on this list of Association Type ID values I would try 201 – Contact to note rather than 202 [edited to correct error] which is in your example.
Did that work?
Here to learn more about HubSpot and share my HubSpot Knowledge. I'm the founder of Webalite a HubSpot Partner Agency based in Wellington, New Zealand and the founder of Portal-iQ the world's first automated HubSpot Portal Audit that helps you work smarter with HubSpot.