<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Unable to infer object type from: files in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Unable-to-infer-object-type-from-files/m-p/829720#M66191</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/174803"&gt;@psjavi&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Files are associated to Contacts in the CRM using Engagements (Notes). When &lt;A href="https://developers.hubspot.com/docs/api/crm/notes" target="_blank" rel="noopener"&gt;creating an engagement&lt;/A&gt; 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".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Aug 2023 09:06:20 GMT</pubDate>
    <dc:creator>coldrickjack</dc:creator>
    <dc:date>2023-08-04T09:06:20Z</dc:date>
    <item>
      <title>Unable to infer object type from: files</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Unable-to-infer-object-type-from-files/m-p/829694#M66188</link>
      <description>&lt;P&gt;Hi, I'm trying to create an association between a contact and a attached file via API integration using the package&amp;nbsp;&lt;A href="https://github.com/HubSpot/hubspot-api-php" target="_blank"&gt;https://github.com/HubSpot/hubspot-api-php&lt;/A&gt; &amp;nbsp;but I'm having an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The response is the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Unable to infer object type from: files&lt;/PRE&gt;&lt;P&gt;I've done a test using directly Insomnina as following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="psjavi_0-1691135834559.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/96232i10FA07103BFF68E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="psjavi_0-1691135834559.png" alt="psjavi_0-1691135834559.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've configured the following permissions for the private app:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="psjavi_1-1691136018199.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/96233i8CD71EE000BCD460/image-size/medium?v=v2&amp;amp;px=400" role="button" title="psjavi_1-1691136018199.png" alt="psjavi_1-1691136018199.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 08:01:00 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Unable-to-infer-object-type-from-files/m-p/829694#M66188</guid>
      <dc:creator>psjavi</dc:creator>
      <dc:date>2023-08-04T08:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to infer object type from: files</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Unable-to-infer-object-type-from-files/m-p/829720#M66191</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/174803"&gt;@psjavi&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Files are associated to Contacts in the CRM using Engagements (Notes). When &lt;A href="https://developers.hubspot.com/docs/api/crm/notes" target="_blank" rel="noopener"&gt;creating an engagement&lt;/A&gt; 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".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 09:06:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Unable-to-infer-object-type-from-files/m-p/829720#M66191</guid>
      <dc:creator>coldrickjack</dc:creator>
      <dc:date>2023-08-04T09:06:20Z</dc:date>
    </item>
  </channel>
</rss>

