<?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: Contacts API v3 Batch Update using email as Unique Id in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Contacts-API-v3-Batch-Update-using-email-as-Unique-Id/m-p/1036377#M76378</link>
    <description>&lt;P&gt;Not sure it will help. How about adding `&lt;SPAN&gt;"idProperty"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"email"&lt;/SPAN&gt;&lt;SPAN&gt;,` in request payload?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Sep 2024 13:52:27 GMT</pubDate>
    <dc:creator>RChen10</dc:creator>
    <dc:date>2024-09-04T13:52:27Z</dc:date>
    <item>
      <title>Contacts API v3 Batch Update using email as Unique Id</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Contacts-API-v3-Batch-Update-using-email-as-Unique-Id/m-p/904444#M70268</link>
      <description>&lt;P&gt;I am trying to batch update hubspot using the email as the id (as refered to in the batch update API document)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Setting id as the email doesn't work, nor does adding idproperty: "email" to the same level as id.&lt;/P&gt;&lt;P&gt;Changing id : xxx to email : xxx returns a validation error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; "inputs": [&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "id": "I Want This to be the email address",&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "properties": {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "someproperty":"updated"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; },&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "id": "this would be another email address",&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "properties": {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "someproperty":"updatedalso"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; },&lt;/P&gt;&lt;P&gt;&amp;nbsp; ]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the best error I get that's not a validation failure is&lt;/P&gt;&lt;P&gt;"OBJECT_NOT_FOUND"&lt;/P&gt;&lt;P&gt;"Could not get some CONTACT objects, they may be deleted or not exist. Check that ids are valid"&lt;/P&gt;&lt;P&gt;this is when setting id to the email address&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know these accounts exist - I have checked via the Hubspot UI.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I cannot update using the RecordID as I will not have this available.&lt;BR /&gt;&lt;BR /&gt;Any help would be very appreciated&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 00:20:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Contacts-API-v3-Batch-Update-using-email-as-Unique-Id/m-p/904444#M70268</guid>
      <dc:creator>DSmith95</dc:creator>
      <dc:date>2024-01-12T00:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Contacts API v3 Batch Update using email as Unique Id</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Contacts-API-v3-Batch-Update-using-email-as-Unique-Id/m-p/905386#M70313</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/691194"&gt;@DSmith95&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've been able to replicate the issue you've described.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While it does say within the &lt;A href="https://developers.hubspot.com/docs/api/crm/contacts" target="_blank" rel="noopener"&gt;relevant API documentation&lt;/A&gt;, that&amp;nbsp;&lt;EM&gt;"You can update contacts individually or in batches. For existing contacts, email and record ID are both unique values, so you can use id or email to update contacts via API"&lt;/EM&gt;, it doesn't actually supply an example of how this can be achieved on the Batch Update Contacts operation. I know it's possible to achieve on the Update Contact (single) operation, but, unfortunately, it looks like it's not possible on the Batch Update Contacts operation.&lt;/P&gt;
&lt;P&gt;You may have to first use the &lt;A href="https://developers.hubspot.com/docs/api/crm/search" target="_blank" rel="noopener"&gt;CRM Search API&lt;/A&gt; to find the relevant internal HubSpot Contact IDs before batch updating the Contacts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this proves useful. Please let me know if you have any follow-up questions.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 04:22:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Contacts-API-v3-Batch-Update-using-email-as-Unique-Id/m-p/905386#M70313</guid>
      <dc:creator>zach_threadint</dc:creator>
      <dc:date>2024-03-05T04:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Contacts API v3 Batch Update using email as Unique Id</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Contacts-API-v3-Batch-Update-using-email-as-Unique-Id/m-p/907161#M70381</link>
      <description>&lt;P&gt;Hey, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/691194"&gt;@DSmith95&lt;/a&gt;&lt;/SPAN&gt; thanks for flagging this. And thanks to &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811"&gt;@zach_threadint&lt;/a&gt;&lt;/SPAN&gt; for reproducing the issue. I'm going to make an example of my own, and I'll see if I can get us a definite answer or a documentation update, if needed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Talk soon! — Jaycee&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 19:48:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Contacts-API-v3-Batch-Update-using-email-as-Unique-Id/m-p/907161#M70381</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2024-01-17T19:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Contacts API v3 Batch Update using email as Unique Id</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Contacts-API-v3-Batch-Update-using-email-as-Unique-Id/m-p/980007#M73785</link>
      <description>&lt;P&gt;Hey, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/691194"&gt;@DSmith95&lt;/a&gt;&lt;/SPAN&gt; and &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811"&gt;@zach_threadint&lt;/a&gt;&lt;/SPAN&gt; &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; I submitted this to the dev doc team with an increased urgency. I'll post here as soon as I get a working example or get it confirmed that this specific endpoint won't work using email as a unique property.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 21:12:34 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Contacts-API-v3-Batch-Update-using-email-as-Unique-Id/m-p/980007#M73785</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2024-05-21T21:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Contacts API v3 Batch Update using email as Unique Id</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Contacts-API-v3-Batch-Update-using-email-as-Unique-Id/m-p/980756#M73822</link>
      <description>&lt;P&gt;Hey y'all. I have an update — this is confirmed &lt;STRONG&gt;not&lt;/STRONG&gt; possible.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I worked with the docs team to get the &lt;A href="https://developers.hubspot.com/docs/api/crm/contacts#update-contacts:~:text=To%20update%20contacts%20in%20batches%2C%20you%20can%20use%20the%20contacts%27%20record%20ID%20values%20(id)." target="_blank"&gt;documentation updated&lt;/A&gt;. Next, I need to track down the team that owns the endpoints tab examples and get that updated. But we have our long-awaited confirmation. I know this is not the answer we were hoping for, and I am grateful that the documentation won't send anyone else on a wild goose chase using a method that isn't possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your patience.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Jaycee&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 20:16:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Contacts-API-v3-Batch-Update-using-email-as-Unique-Id/m-p/980756#M73822</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2024-05-22T20:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Contacts API v3 Batch Update using email as Unique Id</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Contacts-API-v3-Batch-Update-using-email-as-Unique-Id/m-p/981569#M73867</link>
      <description>&lt;P&gt;Thanks for the update&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 06:03:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Contacts-API-v3-Batch-Update-using-email-as-Unique-Id/m-p/981569#M73867</guid>
      <dc:creator>zach_threadint</dc:creator>
      <dc:date>2024-05-24T06:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Contacts API v3 Batch Update using email as Unique Id</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Contacts-API-v3-Batch-Update-using-email-as-Unique-Id/m-p/1036377#M76378</link>
      <description>&lt;P&gt;Not sure it will help. How about adding `&lt;SPAN&gt;"idProperty"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"email"&lt;/SPAN&gt;&lt;SPAN&gt;,` in request payload?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 13:52:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Contacts-API-v3-Batch-Update-using-email-as-Unique-Id/m-p/1036377#M76378</guid>
      <dc:creator>RChen10</dc:creator>
      <dc:date>2024-09-04T13:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Contacts API v3 Batch Update using email as Unique Id</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Contacts-API-v3-Batch-Update-using-email-as-Unique-Id/m-p/1039879#M76559</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/820694"&gt;@RChen10&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for the idea, but unfortunately this does not work at the moment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Example request&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;POST /crm/v3/objects/CONTACTS/batch/update&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
    "inputs": [
        {
            "id": "test@test.com",
            "idProperty": "email",
            "properties": {
                "firstname": "Example 1"
            }
        },
        {
            "id": "example@example.com",
            "idProperty": "email",
            "properties": {
                "firstname": "Example 2"
            }
        }
    ]
}&lt;/LI-CODE&gt;
&lt;P&gt;&lt;STRONG&gt;Example response&lt;/STRONG&gt; (status code 400)&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
    "status": "error",
    "message": "Unable to perform update/upsert by non-unique 0-1 property email in portal ID 25377334",
    "correlationId": "6ab7356a-d80f-4284-bd48-54183fc235d0",
    "category": "VALIDATION_ERROR"
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 06:36:49 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Contacts-API-v3-Batch-Update-using-email-as-Unique-Id/m-p/1039879#M76559</guid>
      <dc:creator>zach_threadint</dc:creator>
      <dc:date>2024-09-12T06:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Contacts API v3 Batch Update using email as Unique Id</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Contacts-API-v3-Batch-Update-using-email-as-Unique-Id/m-p/1042752#M76721</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since email was not working as a unique field, I explicitly made another unique field `emailCopy` and then tried hitting the endpoint using that field, but still got the following error message.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Request:&lt;BR /&gt;curl --request POST \&lt;BR /&gt;--url &lt;A href="https://api.hubapi.com/crm/v3/objects/contacts/batch/update" target="_blank"&gt;https://api.hubapi.com/crm/v3/objects/contacts/batch/update&lt;/A&gt; \&lt;BR /&gt;--header 'authorization: Bearer YOUR_ACCESS_TOKEN' \&lt;BR /&gt;--header 'content-type: application/json' \&lt;BR /&gt;--data '{&lt;BR /&gt;"inputs": [&lt;BR /&gt;{&lt;BR /&gt;"idProperty": "emailCopy",&lt;BR /&gt;"id": "test@hello.com",&lt;BR /&gt;"properties": {&lt;BR /&gt;"role": "user"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}'&lt;BR /&gt;&lt;BR /&gt;Response:&lt;/P&gt;&lt;P&gt;HTTP 400&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;"message": "Invalid property(ies) supplied as unique properties for upsert operation: [PropertyCoordinates{portalId=7192871, objectTypeId=ObjectTypeId{legacyObjectType=CONTACT}, propertyName=emailCopy}]"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I verified that `emailCopy` is a unique property.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CSewell1_0-1726679779486.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/127217iBAFB2A224ECF03B9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CSewell1_0-1726679779486.png" alt="CSewell1_0-1726679779486.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems like this endpoint DOES NOT WORK with any unique fields except for `id`.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, the &lt;A href="https://developers.hubspot.com/docs/api/crm/contacts?_gl=1*4ibc55*_gcl_au*MTI4NDI0MTg0Ny4xNzI2NTE2NDE1*_ga*MTY3NTIzMjYwNC4xNzI2NTE2NDE1*_ga_LXTM6CQ0XK*MTcyNjY3NTkwOS4yLjAuMTcyNjY3NTkwOS42MC4wLjA.#update-contacts:~:text=To%20update%20contacts%20in%20batches%2C%20you%20can%20use%20the%20contacts%27%20record%20ID%20values%20(id)." target="_blank" rel="noopener"&gt;documentation on this page&lt;/A&gt; is incorrect. The request body (one on the right) is malformed JSON.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CSewell1_1-1726679932863.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/127218i9DDA3E1A5CACF2E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CSewell1_1-1726679932863.png" alt="CSewell1_1-1726679932863.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 17:20:42 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Contacts-API-v3-Batch-Update-using-email-as-Unique-Id/m-p/1042752#M76721</guid>
      <dc:creator>CSewell1</dc:creator>
      <dc:date>2024-09-18T17:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Contacts API v3 Batch Update using email as Unique Id</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Contacts-API-v3-Batch-Update-using-email-as-Unique-Id/m-p/1042762#M76722</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;&amp;nbsp;Adding to this, it &lt;STRONG&gt;does NOT work&lt;/STRONG&gt; with &lt;STRONG&gt;any unique properties&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Consider `emailCopy` as a unique property.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CSewell1_0-1726680313999.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/127222iC01A8391E737AACC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CSewell1_0-1726680313999.png" alt="CSewell1_0-1726680313999.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried following request:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;curl --request POST \
  --url https://api.hubapi.com/crm/v3/objects/contacts/batch/update \
  --header 'authorization: Bearer YOUR_ACCESS_TOKEN' \
  --header 'content-type: application/json' \
  --data '{
  "inputs": [
    {
      "idProperty": "emailCopy",
      "id": "test@hello.com",
      "properties": {
        "role": "user"
      }
    }
  ]
}'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and got following response&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;HTTP 400

{
  "status": "error",
  "message": "Invalid property(ies) supplied as unique properties for upsert operation: [PropertyCoordinates{portalId=7192871, objectTypeId=ObjectTypeId{legacyObjectType=CONTACT}, propertyName=emailCopy}]",
  "correlationId": "&amp;lt;id&amp;gt;",
  "category": "VALIDATION_ERROR"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, the sample request body&amp;nbsp;(the one on the right) in the&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/api/crm/contacts?_gl=1*4ibc55*_gcl_au*MTI4NDI0MTg0Ny4xNzI2NTE2NDE1*_ga*MTY3NTIzMjYwNC4xNzI2NTE2NDE1*_ga_LXTM6CQ0XK*MTcyNjY3NTkwOS4yLjAuMTcyNjY3NTkwOS42MC4wLjA.#update-contacts:~:text=To%20update%20contacts%20in%20batches%2C%20you%20can%20use%20the%20contacts%27%20record%20ID%20values%20(id)." target="_blank" rel="noopener"&gt;documentation provided here&lt;/A&gt;&amp;nbsp;is invalid. It has a malformed JSON structure:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CSewell1_1-1726680671773.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/127223i9363C2539E148C7E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CSewell1_1-1726680671773.png" alt="CSewell1_1-1726680671773.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 17:32:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Contacts-API-v3-Batch-Update-using-email-as-Unique-Id/m-p/1042762#M76722</guid>
      <dc:creator>CSewell1</dc:creator>
      <dc:date>2024-09-18T17:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Contacts API v3 Batch Update using email as Unique Id</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Contacts-API-v3-Batch-Update-using-email-as-Unique-Id/m-p/1045980#M76916</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/691194"&gt;@DSmith95&lt;/a&gt;&amp;nbsp;&lt;STRONG&gt;HERE IS THE SOLUTION&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":victory_hand:"&gt;✌🏻&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this using the &lt;STRONG&gt;v1 APIs&lt;/STRONG&gt;. They are quite stable and still supported. The page itself quotes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Our APIs are in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.hubspot.com/blog/building-the-next-generation-of-hubspots-apis" target="_blank"&gt;&lt;SPAN&gt;midst of a transition&lt;/SPAN&gt;&lt;/A&gt;. As part of our effort to improve API consistency and completeness, we launched&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.hubspot.com/docs/api/overview" target="_blank"&gt;&lt;SPAN&gt;the next generation of HubSpot’s API&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in early 2020.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;However, not every endpoint or API has been updated to the latest version, and our older endpoints are still stable and supported&lt;/STRONG&gt;."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use this v1 batch contacts endpoint:&lt;/P&gt;&lt;P&gt;&lt;A href="https://legacydocs.hubspot.com/docs/methods/contacts/batch_create_or_update" target="_blank"&gt;https://legacydocs.hubspot.com/docs/methods/contacts/batch_create_or_update&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use the following example request body&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;[
    // assume existing email
    {
        "email": "test+old@hello.com",
        "properties": [
            {
                "property": "email",
                "value": "test+old@hello.com"
            },
            {
                "property": "firstname",
                "value": "User"
            },
            {
                "property": "lastname",
                "value": "Old Updated"
            }
        ]
    },
    // new email
    {
        "email": "test+new@hello.com",
        "properties": [
            {
                "property": "email",
                "value": "test+new@hello.com"
            },
            {
                "property": "firstname",
                "value": "User"
            },
            {
                "property": "lastname",
                "value": "New"
            }
        ]
    }
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CC:&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;&amp;nbsp;- I see a lot of users in the community suffering from the same issue. Maybe you can suggest them with using this.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 18:23:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Contacts-API-v3-Batch-Update-using-email-as-Unique-Id/m-p/1045980#M76916</guid>
      <dc:creator>CSewell1</dc:creator>
      <dc:date>2024-09-25T18:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Contacts API v3 Batch Update using email as Unique Id</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Contacts-API-v3-Batch-Update-using-email-as-Unique-Id/m-p/1066510#M78023</link>
      <description>&lt;P&gt;I would really like to know when HubSpot intends to fix this. The v1 batch interface only reples with a 202 and provides no token or route which you can use in order to track the request's completion. That makes it difficult to get the ids of newly created contacts. The v3 upsert route will create the contact but will only add the email address and ignores all other contact properties passed with the POST request. It does reply with the ids of the newly created contact records. So you then have to use that information and do a separate batch update to get the remaining information into the record.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 19:28:02 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Contacts-API-v3-Batch-Update-using-email-as-Unique-Id/m-p/1066510#M78023</guid>
      <dc:creator>SBasile</dc:creator>
      <dc:date>2024-11-07T19:28:02Z</dc:date>
    </item>
  </channel>
</rss>

