I'm trying to create an engagement note on a deal with an attached PDF file. I first uploaded the pdf with the File API and got its id and then created the engagement with thoses params:
The engagement is created but the attachments field is empty. I tried attaching the same file through the UI and it worked. Could you please help me with this ? Thanks a lot
Did you get this one figured out? I wonder if the ID is incorrect. When you search for the file through the CMS Files API: https://developers.hubspot.com/docs/methods/files/get_files_file_id, do you find the file with that ID? What was the field name where you got that ID from?
Otherwise it looks like you've got the right process for uploading a file, creating an engagement, and attaching the file to the engagement.