I want to attachment the file that I uploaded with the ticket that I created
the old documentation not working
the new documentation, I don’t know the property
I just want to attachment the file that I uploaded with the ticket that I created
so I only have two ids, one is the fileId, the other is the ticketId
what is to.id, what is associationTypeId
what is the right api for that?
thanks
Hi @candidcrystals
Thank you for reaching out.
I want to tag one of our experts here - @tominal do you have some advice for @candidcrystals here?
Thank you!
Best
Tiphaine
Hey @candidcrystals,
What you are trying to accomplish combines two APIs that I have used in the past.
First, the CMS Files API, then the Engagements API with an attachment.
- https://legacydocs.hubspot.com/docs/methods/files/v3/upload_new_file
- https://legacydocs.hubspot.com/docs/methods/engagements/create_engagement
Specify the ID(s) in the attachments array of your payload.
Hope that helps!