APIs & Integrations

manomohan55
Member

Update a document to a contact via API

HI

I need to update a pdf document to a contact.
I want to automate this process using HubSpot API, want to check if it is possible to perform this action.

Thanks,
Raj

0 Upvotes
1 Reply 1
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Update a document to a contact via API

Hi @manomohan55,

Just to make sure that we're on the same page, are you referring to document in the HubSpot Documents tool? Or just a regular PDF document? If you mean the former, then it's unfortunately not currently possible to associate these objects via the API.

If you're just looking to attach a PDF file to a contact record, you can do that by using the Engagements API; you'll want to create a NOTE type engagement, and attach the file to that engagement:

Create an Engagement | Engagements API

POST /engagements/v1/engagements - Create an engagement via the HubSpot API.

0 Upvotes