Trying to associate a note to a company with API

Hi,

I’m trying to associate a note to a specific company:
/crm/v3/objects/notes/<noteId>/associations/company/<companyId>/202?hapikey=key

but I get:

{

“status”: “error”,

“message”: “There was a problem with the request.”,

“correlationId”: “4a1dee39-b899-4ec9-91a6-dfc1d852369d”

}

When I use:
/crm/v3/objects/notes/<noteId>/associations/contact/<contactId>/202?hapikey=key

It works. Is there something wrong when I make the PUT request with company label?

@PSavonen ,

What happens when you replace 202 with note_to_company?

@PSavonen ,

What happens when you replace 202 with note_to_company?

@dennisedson

Well, what happens is that it works perfectly :slightly_smiling_face:
Thank you very much!

Follow up question:
Is there a possibility to associate a note to a deal?

Yes there is, just by using PUT like this:
/crm/v3/objects/notes/<noteId>/associations/deal/<dealId>/note_to_deal?hapikey=key

Thanks for doing my job!