<?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: Updating a contact property via API in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Updating-a-contact-property-via-API/m-p/301134#M28340</link>
    <description>&lt;P&gt;No worries&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/110056"&gt;@pquinta&lt;/a&gt;&amp;nbsp;happy to help! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Nov 2019 12:11:07 GMT</pubDate>
    <dc:creator>jackcoldrick</dc:creator>
    <dc:date>2019-11-08T12:11:07Z</dc:date>
    <item>
      <title>Updating a contact property via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Updating-a-contact-property-via-API/m-p/301118#M28335</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to update a contact property via API, but I am getting errors constantly and I am not finding any help in the documentation. As such, the property in question has the following characteristics:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its a multiple checkboxes property named Tags&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My goal is to create a new checkbox item in the property ( I know that by adding one i erased the current ones)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;What I am sending:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'https://api.hubapi.com/properties/v1/contacts/properties/named/tags?hapikey=xxxx',
                    {
                        'Content-type': 'application/json'
                    },
                    {
                        "name": "tags",
                        "groupName": "xpto_information",
                        "description": "",
                        "fieldType": "checkbox",
                        "formField": False,
                        "type": "enumeration",
                        "displayOrder": -1,
                        "label": "Tags",
                        "options": [
                            {
                                "label": "TestA",
                                "displayOrder": -1,
                                "hidden": False,
                                "readOnly": False,
                                "doubleData": False,
                                "description": False,
                                "value": "TestA"
                            }
                        ]
                    }&lt;/PRE&gt;&lt;P&gt;I am getting a 400 error invalid JSON input and cannot deserialize .....&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 10:25:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Updating-a-contact-property-via-API/m-p/301118#M28335</guid>
      <dc:creator>pquinta</dc:creator>
      <dc:date>2019-11-08T10:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a contact property via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Updating-a-contact-property-via-API/m-p/301127#M28337</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/110056"&gt;@pquinta&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;In your payload I would recommend setting "doubleData" to null and also to ensure you are passing "false" instead of "False". For example I am able to successfully update a property using the payload below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
    "name": "tags",
    "description": "",
    "groupName": "contactinformation",
    "type": "enumeration",
    "fieldType": "checkbox",
    "formField": true,
    "options": [
        {
            "label": "TestA",
            "displayOrder": -1,
            "hidden": false,
            "readOnly": false,
            "doubleData": null,
            "description": "false",
            "value": "TestA"
        },
        {
            "label": "TestB",
            "displayOrder": -1,
            "hidden": false,
            "readOnly": false,
            "doubleData": null,
            "description": "false",
            "value": "TestB"
        }
    ],
    "createdUserId": null,
    "searchableInGlobalSearch": false
}&lt;/PRE&gt;
&lt;P&gt;Which results in this property being updated in my portal:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tags.png" style="width: 854px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/21266iFD0089065131A899/image-size/large?v=v2&amp;amp;px=999" role="button" title="tags.png" alt="tags.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 11:54:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Updating-a-contact-property-via-API/m-p/301127#M28337</guid>
      <dc:creator>jackcoldrick</dc:creator>
      <dc:date>2019-11-08T11:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a contact property via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Updating-a-contact-property-via-API/m-p/301132#M28338</link>
      <description>&lt;P&gt;Thanks a lot &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/5724"&gt;@jackcoldrick&lt;/a&gt; . It works now.&lt;/P&gt;&lt;P&gt;As I was using python I unconsciously replaced false with False and yeah almost certain that it was causing trouble.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 12:07:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Updating-a-contact-property-via-API/m-p/301132#M28338</guid>
      <dc:creator>pquinta</dc:creator>
      <dc:date>2019-11-08T12:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a contact property via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Updating-a-contact-property-via-API/m-p/301134#M28340</link>
      <description>&lt;P&gt;No worries&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/110056"&gt;@pquinta&lt;/a&gt;&amp;nbsp;happy to help! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 12:11:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Updating-a-contact-property-via-API/m-p/301134#M28340</guid>
      <dc:creator>jackcoldrick</dc:creator>
      <dc:date>2019-11-08T12:11:07Z</dc:date>
    </item>
  </channel>
</rss>

