<?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 contact property using python API in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Updating-contact-property-using-python-API/m-p/604883#M52013</link>
    <description>&lt;P&gt;I am interested with this topic. But, how if we want to update more than 1 properties?. Do you have format payload if the property more than 1? Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 31 Mar 2022 05:38:43 GMT</pubDate>
    <dc:creator>maulanariziq</dc:creator>
    <dc:date>2022-03-31T05:38:43Z</dc:date>
    <item>
      <title>Updating contact property using python API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Updating-contact-property-using-python-API/m-p/443408#M43967</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the v3 API documentation to update a contact property:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/api/crm/contactshttps://developers.hubspot.com/docs/api/crm/contacts" target="_blank"&gt;https://developers.hubspot.com/docs/api/crm/contactshttps://developers.hubspot.com/docs/api/crm/contacts&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The example works for typical field like email, firstname, company etc.&lt;/P&gt;&lt;P&gt;However, I want to change the persona property and it throws invalid property error&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="Venky1_0-1622656339990.png" style="width: 629px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/43683i03C1A3E707F3EB0F/image-dimensions/629x196?v=v2" width="629" height="196" role="button" title="Venky1_0-1622656339990.png" alt="Venky1_0-1622656339990.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error log :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Venky1_1-1622656398363.png" style="width: 620px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/43684iBB61829C444F3003/image-dimensions/620x31?v=v2" width="620" height="31" role="button" title="Venky1_1-1622656398363.png" alt="Venky1_1-1622656398363.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 17:54:03 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Updating-contact-property-using-python-API/m-p/443408#M43967</guid>
      <dc:creator>Venky1</dc:creator>
      <dc:date>2021-06-02T17:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Updating contact property using python API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Updating-contact-property-using-python-API/m-p/443643#M43968</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/194246"&gt;@Venky1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for reaching out&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to tag some of our experts on this -&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/66301"&gt;@Bryantworks&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/76423"&gt;@MichaelC&lt;/a&gt;&amp;nbsp;do you have any thoughts for&amp;nbsp;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/194246"&gt;@Venky1&lt;/a&gt;&amp;nbsp;on this?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;Tiphaine&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 08:45:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Updating-contact-property-using-python-API/m-p/443643#M43968</guid>
      <dc:creator>TitiCuisset</dc:creator>
      <dc:date>2021-06-03T08:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Updating contact property using python API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Updating-contact-property-using-python-API/m-p/443647#M43971</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/89150"&gt;@TitiCuisset&lt;/a&gt;&amp;nbsp;thanks for the handoff&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/194246"&gt;@Venky1&lt;/a&gt;&amp;nbsp;there is a few things we need to find out..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error is that the property persona does not exist.. there are several possible errors that might have caused it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Please go to your portal settings &amp;gt; Properties &amp;gt; Contact Properties &amp;gt; Find the property persona&lt;/P&gt;
&lt;P&gt;We need to make sure you are using the propertys internal value&lt;/P&gt;
&lt;P&gt;My example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MichaelC_0-1622710253998.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/43761iDC5E1013E49D2149/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MichaelC_0-1622710253998.png" alt="MichaelC_0-1622710253998.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do that and come back here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 08:51:34 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Updating-contact-property-using-python-API/m-p/443647#M43971</guid>
      <dc:creator>MichaelC</dc:creator>
      <dc:date>2021-06-03T08:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Updating contact property using python API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Updating-contact-property-using-python-API/m-p/443701#M43975</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/194246"&gt;@Venky1&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN data-sheets-value="{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:&amp;quot;WEBDEW : Your code are corrected and make sure \&amp;quot;persona\&amp;quot; properties key should be match with the same or exist in properties. please search property and check key of that.\r\n\r\n1. Go To Settings : https://prnt.sc/13two1p\r\n2. Properties\r\n3. Search persona properties.\r\n4. Check key of persona property and if you property has dropdown values then please check key of options and you have to passed those values.\r\n\r\nNote : make sure this properties not a read only property.\r\n\r\nimport requests\r\n\r\nurl = \&amp;quot;https://api.hubapi.com/crm/v3/objects/contacts/51\&amp;quot;\r\n\r\nquerystring = {\&amp;quot;hapikey\&amp;quot;:hapikEY}\r\n\r\npayload = \&amp;quot;{\\\&amp;quot;properties\\\&amp;quot;:{\\\&amp;quot;persona\\\&amp;quot;:\\\&amp;quot;New persona\\\&amp;quot;}}\&amp;quot;\r\nheaders = {\r\n    'accept': \&amp;quot;application/json\&amp;quot;,\r\n    'content-type': \&amp;quot;application/json\&amp;quot;\r\n    }\r\n\r\nresponse = requests.request(\&amp;quot;PATCH\&amp;quot;, url, data=payload, headers=headers, params=querystring)\r\n\r\nprint(response.text)&amp;quot;}" data-sheets-userformat="{&amp;quot;2&amp;quot;:5053,&amp;quot;3&amp;quot;:{&amp;quot;1&amp;quot;:0},&amp;quot;5&amp;quot;:{&amp;quot;1&amp;quot;:[{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0,&amp;quot;5&amp;quot;:{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0}},{&amp;quot;1&amp;quot;:0,&amp;quot;2&amp;quot;:0,&amp;quot;3&amp;quot;:3},{&amp;quot;1&amp;quot;:1,&amp;quot;2&amp;quot;:0,&amp;quot;4&amp;quot;:1}]},&amp;quot;6&amp;quot;:{&amp;quot;1&amp;quot;:[{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0,&amp;quot;5&amp;quot;:{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0}},{&amp;quot;1&amp;quot;:0,&amp;quot;2&amp;quot;:0,&amp;quot;3&amp;quot;:3},{&amp;quot;1&amp;quot;:1,&amp;quot;2&amp;quot;:0,&amp;quot;4&amp;quot;:1}]},&amp;quot;7&amp;quot;:{&amp;quot;1&amp;quot;:[{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0,&amp;quot;5&amp;quot;:{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0}},{&amp;quot;1&amp;quot;:0,&amp;quot;2&amp;quot;:0,&amp;quot;3&amp;quot;:3},{&amp;quot;1&amp;quot;:1,&amp;quot;2&amp;quot;:0,&amp;quot;4&amp;quot;:1}]},&amp;quot;8&amp;quot;:{&amp;quot;1&amp;quot;:[{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0,&amp;quot;5&amp;quot;:{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0}},{&amp;quot;1&amp;quot;:0,&amp;quot;2&amp;quot;:0,&amp;quot;3&amp;quot;:3},{&amp;quot;1&amp;quot;:1,&amp;quot;2&amp;quot;:0,&amp;quot;4&amp;quot;:1}]},&amp;quot;10&amp;quot;:2,&amp;quot;11&amp;quot;:4,&amp;quot;12&amp;quot;:0,&amp;quot;15&amp;quot;:&amp;quot;Arial&amp;quot;}"&gt;Your code are correct and make sure "persona" properties key should be match with the same or exist in properties. please search property and check key of that. &lt;BR /&gt;&lt;BR /&gt;1. Go To Settings : &lt;A href="https://prnt.sc/13two1p" target="_blank"&gt;https://prnt.sc/13two1p&lt;/A&gt; &lt;BR /&gt;2. Properties &lt;BR /&gt;3. Search persona properties. &lt;BR /&gt;4. Check key of persona property and if you property has dropdown values then please check key of options and you have to passed those values. &lt;BR /&gt;&lt;BR /&gt;Note : make sure this properties not a read only property. &lt;BR /&gt;&lt;BR /&gt;import requests &lt;BR /&gt;&lt;BR /&gt;url = "&lt;A href="https://api.hubapi.com/crm/v3/objects/contacts/51" target="_blank"&gt;https://api.hubapi.com/crm/v3/objects/contacts/51&lt;/A&gt;" &lt;BR /&gt;&lt;BR /&gt;querystring = {"hapikey":hapikEY} &lt;BR /&gt;&lt;BR /&gt;payload = "{\"properties\":{\"persona\":\"New persona\"}}" &lt;BR /&gt;headers = { &lt;BR /&gt;'accept': "application/json", &lt;BR /&gt;'content-type': "application/json" &lt;BR /&gt;} &lt;BR /&gt;&lt;BR /&gt;response = requests.request("PATCH", url, data=payload, headers=headers, params=querystring) &lt;BR /&gt;&lt;BR /&gt;print(response.text)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;If we were able to answer your query, kindly help the community by marking it as a solution.&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 11:30:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Updating-contact-property-using-python-API/m-p/443701#M43975</guid>
      <dc:creator>webdew</dc:creator>
      <dc:date>2021-06-03T11:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Updating contact property using python API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Updating-contact-property-using-python-API/m-p/443812#M43988</link>
      <description>&lt;P&gt;Thanks for the responses. I changed the property values and used the INTERNAL VALUE and INTERNAL NAME instead. It fixed the issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 15:56:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Updating-contact-property-using-python-API/m-p/443812#M43988</guid>
      <dc:creator>Venky1</dc:creator>
      <dc:date>2021-06-03T15:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Updating contact property using python API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Updating-contact-property-using-python-API/m-p/604883#M52013</link>
      <description>&lt;P&gt;I am interested with this topic. But, how if we want to update more than 1 properties?. Do you have format payload if the property more than 1? Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 05:38:43 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Updating-contact-property-using-python-API/m-p/604883#M52013</guid>
      <dc:creator>maulanariziq</dc:creator>
      <dc:date>2022-03-31T05:38:43Z</dc:date>
    </item>
  </channel>
</rss>

