APIs & Integrations

PSavonen
Member

Trying to associate a note to a company with API

SOLVE

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?

 

0 Upvotes
1 Accepted solution
dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

Trying to associate a note to a company with API

SOLVE

@PSavonen ,

What happens when you replace 202 with note_to_company?

View solution in original post

0 Upvotes
6 Replies 6
dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

Trying to associate a note to a company with API

SOLVE

@PSavonen ,

What happens when you replace 202 with note_to_company?

0 Upvotes
PSavonen
Member

Trying to associate a note to a company with API

SOLVE

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

0 Upvotes
PSavonen
Member

Trying to associate a note to a company with API

SOLVE

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

dennisedson
HubSpot Product Team
HubSpot Product Team

Trying to associate a note to a company with API

SOLVE

Thanks for doing my job!

0 Upvotes
PSavonen
Member

Trying to associate a note to a company with API

SOLVE

@dennisedson 

Well, what happens is that it works perfectly 🙂

Thank you very much!

dennisedson
HubSpot Product Team
HubSpot Product Team

Trying to associate a note to a company with API

SOLVE

@PSavonen ,

What happens when you replace 202 with note_to_company?

0 Upvotes