<?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 New Functionality: PATCH Method for updating CRM Object Properties in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/New-Functionality-PATCH-Method-for-updating-CRM-Object/m-p/295224#M27673</link>
    <description>&lt;H2&gt;What’s happening?&lt;/H2&gt;
&lt;P&gt;We are adding the availability of a PATCH Method for use when updating the CRM Object Properties. This will allow for updating ONLY the fields that are included with the PATCH request. Any omitted fields will not be updated and will retain their current value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, the following request would only update the description of the property, without affecting the other property settings, such as the property group, or the options for enumerated properties:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;$ curl https://api.hubapi.com/properties/v2/tickets/properties/named/example_property?hapikey=$YOUR_HAPIKEY \
  --request PATCH \
  --header "Content-Type: application/json" \
  --data '{ "description": "My updated description" }'
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;H2&gt;&amp;nbsp;&lt;/H2&gt;
&lt;H2&gt;Why is this happening?&lt;/H2&gt;
&lt;P&gt;Previously when updating a CRM Object Property, the only method available was the PUT method. While this worked, if all of the properties were not sent in the request and some fields were omitted, such as the label and description properties, these would then be reset to a null (blank) value or a value of ‘false’ for boolean values (even if the value was true prior to the PUT).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;When is this happening?&lt;/H2&gt;
&lt;P&gt;This method is currently available and can be viewed here: &lt;A href="https://developers.hubspot.com/docs/methods/crm-properties/update-property" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/methods/crm-properties/update-property&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;To view the PUT method for updating, please visit: &lt;A href="https://developers.hubspot.com/docs/methods/crm-properties/update-property-put" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/methods/crm-properties/update-property-put&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Oct 2019 14:17:44 GMT</pubDate>
    <dc:creator>AJLaPorte</dc:creator>
    <dc:date>2019-10-07T14:17:44Z</dc:date>
    <item>
      <title>New Functionality: PATCH Method for updating CRM Object Properties</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/New-Functionality-PATCH-Method-for-updating-CRM-Object/m-p/295224#M27673</link>
      <description>&lt;H2&gt;What’s happening?&lt;/H2&gt;
&lt;P&gt;We are adding the availability of a PATCH Method for use when updating the CRM Object Properties. This will allow for updating ONLY the fields that are included with the PATCH request. Any omitted fields will not be updated and will retain their current value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, the following request would only update the description of the property, without affecting the other property settings, such as the property group, or the options for enumerated properties:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;$ curl https://api.hubapi.com/properties/v2/tickets/properties/named/example_property?hapikey=$YOUR_HAPIKEY \
  --request PATCH \
  --header "Content-Type: application/json" \
  --data '{ "description": "My updated description" }'
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;H2&gt;&amp;nbsp;&lt;/H2&gt;
&lt;H2&gt;Why is this happening?&lt;/H2&gt;
&lt;P&gt;Previously when updating a CRM Object Property, the only method available was the PUT method. While this worked, if all of the properties were not sent in the request and some fields were omitted, such as the label and description properties, these would then be reset to a null (blank) value or a value of ‘false’ for boolean values (even if the value was true prior to the PUT).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;When is this happening?&lt;/H2&gt;
&lt;P&gt;This method is currently available and can be viewed here: &lt;A href="https://developers.hubspot.com/docs/methods/crm-properties/update-property" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/methods/crm-properties/update-property&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;To view the PUT method for updating, please visit: &lt;A href="https://developers.hubspot.com/docs/methods/crm-properties/update-property-put" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/methods/crm-properties/update-property-put&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 14:17:44 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/New-Functionality-PATCH-Method-for-updating-CRM-Object/m-p/295224#M27673</guid>
      <dc:creator>AJLaPorte</dc:creator>
      <dc:date>2019-10-07T14:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: New Functionality: PATCH Method for updating CRM Object Properties</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/New-Functionality-PATCH-Method-for-updating-CRM-Object/m-p/363147#M35742</link>
      <description>&lt;P&gt;Does this handle patching of custom properties too?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 15:32:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/New-Functionality-PATCH-Method-for-updating-CRM-Object/m-p/363147#M35742</guid>
      <dc:creator>wreid</dc:creator>
      <dc:date>2020-08-19T15:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: New Functionality: PATCH Method for updating CRM Object Properties</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/New-Functionality-PATCH-Method-for-updating-CRM-Object/m-p/363167#M35743</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/141518"&gt;@wreid&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, this also encompasses the patching of custom properties as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-AJ&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 17:04:17 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/New-Functionality-PATCH-Method-for-updating-CRM-Object/m-p/363167#M35743</guid>
      <dc:creator>AJLaPorte</dc:creator>
      <dc:date>2020-08-19T17:04:17Z</dc:date>
    </item>
  </channel>
</rss>

