Hi,
I am trying to attach multiple files to a ticket via API.
I uploaded the files first, got the file ID, created the ticket, and got the ticket ID—everything’s good.
For a single file, everything works well. I made a note with the properties:
type HSNoteProperties struct {
HSNoteBody string `json:”hs_note_body,omitempty”`
HSAttachmentId string `json:”hs_attachment_ids,omitempty”`
HSTimestamp string `json:”hs_timestamp,omitempty”`
}
To the endpoint:
“https://api.hubapi.com/crm/v3/objects/notes”
However, this does not work for multiple files. I’ve tried the same endpoint with association
{
AssociationCategory: “HUBSPOT_DEFINED”,
AssociationTypeID: 22,
}
but this does not work, telling me the associationTypeID is wrong.
So… How can I attach multiple files to a ticket or a note? I cannot find anything up to date…
Many thanks in advance