<?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 Companies Batch Upsert API endpoint in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Companies-Batch-Upsert-API-endpoint/m-p/1117791#M80686</link>
    <description>&lt;P&gt;Facing the below error, While using batch upsert api for compaines object using "domain" as unique identifier. &amp;nbsp;Anyone facing the issue.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Unable to perform update/upsert by non-unique 0-2 property domain in portal ID&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;But documentation specified that, For companies, "domain" is the primary unique identifier&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.hubspot.com/docs/guides/api/crm/objects/companies#properties" target="_blank"&gt;https://developers.hubspot.com/docs/guides/api/crm/objects/companies#properties&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Mar 2025 18:07:57 GMT</pubDate>
    <dc:creator>fancyHS</dc:creator>
    <dc:date>2025-03-04T18:07:57Z</dc:date>
    <item>
      <title>Companies Batch Upsert API endpoint</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Companies-Batch-Upsert-API-endpoint/m-p/1117791#M80686</link>
      <description>&lt;P&gt;Facing the below error, While using batch upsert api for compaines object using "domain" as unique identifier. &amp;nbsp;Anyone facing the issue.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Unable to perform update/upsert by non-unique 0-2 property domain in portal ID&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;But documentation specified that, For companies, "domain" is the primary unique identifier&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.hubspot.com/docs/guides/api/crm/objects/companies#properties" target="_blank"&gt;https://developers.hubspot.com/docs/guides/api/crm/objects/companies#properties&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 18:07:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Companies-Batch-Upsert-API-endpoint/m-p/1117791#M80686</guid>
      <dc:creator>fancyHS</dc:creator>
      <dc:date>2025-03-04T18:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Companies Batch Upsert API endpoint</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Companies-Batch-Upsert-API-endpoint/m-p/1118151#M80698</link>
      <description>&lt;LI-CODE lang="markup"&gt;curl --request POST \
 --url https://api.hubapi.com/crm/v3/objects/companies/batch/upsert \
 --header 'authorization: Bearer &amp;lt;Access_Token&amp;gt;' \
 --header 'content-type: application/json' \
 --data '{
 "inputs": [
   {
     "idProperty": "domain",
     "id": "test3.com",
     "properties": {
       "name": "test3"
     }
   }
 ]
}'&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 05 Mar 2025 10:21:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Companies-Batch-Upsert-API-endpoint/m-p/1118151#M80698</guid>
      <dc:creator>fancyHS</dc:creator>
      <dc:date>2025-03-05T10:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Companies Batch Upsert API endpoint</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Companies-Batch-Upsert-API-endpoint/m-p/1119489#M80757</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/909549"&gt;@fancyHS&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your logic in attempting this is correct. However, it looks like the "primary unique identifier" does not necessarily mean that the property itself actually is a unique property (it does not require unique values) - as it is possible to enter the same domain name for multiple company records. Certainly confusing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Someone else recently asked about the Company upsert endpoint and I provided a suggestion on how to work around this limitation in this thread:&amp;nbsp;&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/Create-or-update-a-batch-of-contacts-by-unique-property-values/m-p/1119484/highlight/true#M80755" target="_blank" rel="noopener"&gt;https://community.hubspot.com/t5/APIs-Integrations/Create-or-update-a-batch-of-contacts-by-unique-property-values/m-p/1119484/highlight/true#M80755&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I realize the solution is not ideal but hopefully helps explain the situation.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 18:32:42 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Companies-Batch-Upsert-API-endpoint/m-p/1119489#M80757</guid>
      <dc:creator>evaldas</dc:creator>
      <dc:date>2025-03-07T18:32:42Z</dc:date>
    </item>
  </channel>
</rss>

