APIs & Integrations

psjavi
Participante

Unable to infer object type from: files

resolver

Hi, I'm trying to create an association between a contact and a attached file via API integration using the package https://github.com/HubSpot/hubspot-api-php  but I'm having an error.

 

The response is the following:

 

Unable to infer object type from: files

I've done a test using directly Insomnina as following:

 

psjavi_0-1691135834559.png

 

What I'm doing wrong?

 

I've configured the following permissions for the private app:

psjavi_1-1691136018199.png

 

0 Avaliação positiva
1 Solução aceita
coldrickjack
Solução
Orientador(a)

Unable to infer object type from: files

resolver

Hey @psjavi,

 

Files are associated to Contacts in the CRM using Engagements (Notes). When creating an engagement you can include the file ID by including it in the "hs_attachment_ids" attribute in your request. Once the engagement has been created you can then associate to the contact using to engagement using type "contact_to_note". 

 

 

Exibir solução no post original

1 Resposta 1
coldrickjack
Solução
Orientador(a)

Unable to infer object type from: files

resolver

Hey @psjavi,

 

Files are associated to Contacts in the CRM using Engagements (Notes). When creating an engagement you can include the file ID by including it in the "hs_attachment_ids" attribute in your request. Once the engagement has been created you can then associate to the contact using to engagement using type "contact_to_note".