<?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 Batch Create or Update Contacts 202 Accepted Received But Nothing is Updated in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Batch-Create-or-Update-Contacts-202-Accepted-Received-But/m-p/254329#M22535</link>
    <description>&lt;P&gt;Using Batch Create or Update Contacts and I receive the&amp;nbsp; 202 accepted received but nothing is updated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C# Code&lt;/P&gt;&lt;PRE&gt;        private static void UpdateHubSpotContacts(StringBuilder sb)
        {

            var hapikey = "mykey";
            var client = new RestClient("https://api.hubapi.com/");
            var request = new RestRequest("contacts/v1/contact/batch/", Method.POST);

            request.AddQueryParameter("hapikey", hapikey);
            request.AddParameter("application/json", sb, ParameterType.RequestBody);
            request.RequestFormat = DataFormat.Json;
            request.AddHeader("Content-Type", "application/json");



            IRestResponse response = client.Execute(request);
            Console.WriteLine(response.Content);
            Console.ReadLine();

        }&lt;/PRE&gt;&lt;P&gt;JSON&lt;/P&gt;&lt;PRE&gt;[
 {
   "email": "test1@test.com",
   "Properties": [
     {
       "property": "firstname",
       "value": "test1"
     },
     {
       "property": "lastname",
       "value": "tester1"
     }
   ]
 },{
   "email": "test2@test.com",
   "Properties": [
     {
       "property": "firstname",
       "value": "test2"
     },
     {
       "property": "lastname",
       "value": "tester2"
     }
   ]
 },
 {
   "email": "test3@test.com",
   "Properties": [
     {
       "property": "firstname",
       "value": "test3"
     },
     {
       "property": "lastname",
       "value": "tester3"
     }
   ]
 }
]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Feb 2019 16:34:36 GMT</pubDate>
    <dc:creator>bjackson</dc:creator>
    <dc:date>2019-02-20T16:34:36Z</dc:date>
    <item>
      <title>Batch Create or Update Contacts 202 Accepted Received But Nothing is Updated</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Batch-Create-or-Update-Contacts-202-Accepted-Received-But/m-p/254329#M22535</link>
      <description>&lt;P&gt;Using Batch Create or Update Contacts and I receive the&amp;nbsp; 202 accepted received but nothing is updated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C# Code&lt;/P&gt;&lt;PRE&gt;        private static void UpdateHubSpotContacts(StringBuilder sb)
        {

            var hapikey = "mykey";
            var client = new RestClient("https://api.hubapi.com/");
            var request = new RestRequest("contacts/v1/contact/batch/", Method.POST);

            request.AddQueryParameter("hapikey", hapikey);
            request.AddParameter("application/json", sb, ParameterType.RequestBody);
            request.RequestFormat = DataFormat.Json;
            request.AddHeader("Content-Type", "application/json");



            IRestResponse response = client.Execute(request);
            Console.WriteLine(response.Content);
            Console.ReadLine();

        }&lt;/PRE&gt;&lt;P&gt;JSON&lt;/P&gt;&lt;PRE&gt;[
 {
   "email": "test1@test.com",
   "Properties": [
     {
       "property": "firstname",
       "value": "test1"
     },
     {
       "property": "lastname",
       "value": "tester1"
     }
   ]
 },{
   "email": "test2@test.com",
   "Properties": [
     {
       "property": "firstname",
       "value": "test2"
     },
     {
       "property": "lastname",
       "value": "tester2"
     }
   ]
 },
 {
   "email": "test3@test.com",
   "Properties": [
     {
       "property": "firstname",
       "value": "test3"
     },
     {
       "property": "lastname",
       "value": "tester3"
     }
   ]
 }
]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 16:34:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Batch-Create-or-Update-Contacts-202-Accepted-Received-But/m-p/254329#M22535</guid>
      <dc:creator>bjackson</dc:creator>
      <dc:date>2019-02-20T16:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Create or Update Contacts 202 Accepted Received But Nothing is Updated</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Batch-Create-or-Update-Contacts-202-Accepted-Received-But/m-p/254759#M22576</link>
      <description>&lt;P&gt;Hey there,&lt;/P&gt;&lt;P&gt;It looks like the formatting of the JSON payload should be changed from:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[
 {
   "email": "test1@test.com",
   "Properties": [
     {&lt;/PRE&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[
 {
   "email": "test1@test.com",
   "properties": [
     {&lt;/PRE&gt;&lt;P&gt;Can you give this a shot? Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 20:51:41 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Batch-Create-or-Update-Contacts-202-Accepted-Received-But/m-p/254759#M22576</guid>
      <dc:creator>jdobrovich</dc:creator>
      <dc:date>2019-02-21T20:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Create or Update Contacts 202 Accepted Received But Nothing is Updated</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Batch-Create-or-Update-Contacts-202-Accepted-Received-But/m-p/274495#M24967</link>
      <description>&lt;P&gt;Hi, I am facing with the same problem. I made a very simple query:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://api.hubapi.com/contacts/v1/contact/batch/?hapikey={deleted" target="_blank" rel="noopener"&gt;https://api.hubapi.com/contacts/v1/contact/batch/?hapikey={deleted&lt;/A&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;POST body:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;BR /&gt;&amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "vid": 10000,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "properties": [&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "property": "firstname",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "value": "Brian"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ]&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And received status 202 Accepted, but there is no this contact in the list of contacts.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 11:32:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Batch-Create-or-Update-Contacts-202-Accepted-Received-But/m-p/274495#M24967</guid>
      <dc:creator>IvNyr</dc:creator>
      <dc:date>2019-06-11T11:32:33Z</dc:date>
    </item>
  </channel>
</rss>

