Hello HubSpot community,
I have created custom properties for Contacts and Tickets where I intend to store an uploaded file/attachment.
I cannot directly upload the file when creating the Contact or Ticket via API. Is file upload for Contacts or Tickets via API not possible?
Thank you in advance!
Is there a procedure I need to follow like: upload to File Manager in HubSpot and then attach the file to the Contact record or how?
Hi @ilir-test,
This post right here seems to answer your question: How can I upload file to a ticket using API.
Additionally, this might be helpful: How can I attach a file to contact via API?
Since both posts are a bit older, I’d recommend you check the latest version of the endpoints:
Files
Engagements
Hope this helps!
Hi @karstenkoehler ,
Thank you for the answer. I will try your suggestions and let others know how it goes!
All the best,
Ilir
Thank you for your help @karstenkoehler , your suggestions worked. I first upload the file to File Manager and then associate it with the Contact using Engagement.