Attach(upload) file to Note via api

Hi

Can we used engagement api to attach (upload) file to note?

I saw this post Solved: HubSpot Community - How can I upload file to a ticket using API. - HubSpot Community but it is for attaching to ticket but I want to attach fie to NOTE.

Thanks

Hey @Abhimanyu !

You will need to upload the file with file manager and then get the ID and use that ID as the value for the attachment in your note

@quentin_lamamy might be able to help with more specific code implementation!

Thanks @dennisedson for the ping
Hi @Abhimanyu ,

Which langugage are you using ? Are you using a sdk ?

Hi @quentin_lamamy
I am using C#. As @dennisedson mention now I able to upload file to the note earlirier I was getting the error becuase attachment json was incorrect and it is causing the issue.

Thank you

Hi @Abhimanyu

I’m glad to hear that you solved your issue, don’t forget to flag your topic as sovled.