<?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 Read-only Properties on API in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Read-only-Properties-on-API/m-p/295621#M27706</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to ask if there's a workaround on adding/updating option values of read-only definition properties (e.g., Lead Status, Lifecylce Stage). It can be done on hubspot UI, but using the API calls from the docs gives errors on read-only definition. Could it be done?&amp;nbsp;We're trying to intergrate using the API after the client connects to the app.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Oct 2019 22:21:53 GMT</pubDate>
    <dc:creator>avyer</dc:creator>
    <dc:date>2019-10-08T22:21:53Z</dc:date>
    <item>
      <title>Read-only Properties on API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Read-only-Properties-on-API/m-p/295621#M27706</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to ask if there's a workaround on adding/updating option values of read-only definition properties (e.g., Lead Status, Lifecylce Stage). It can be done on hubspot UI, but using the API calls from the docs gives errors on read-only definition. Could it be done?&amp;nbsp;We're trying to intergrate using the API after the client connects to the app.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 22:21:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Read-only-Properties-on-API/m-p/295621#M27706</guid>
      <dc:creator>avyer</dc:creator>
      <dc:date>2019-10-08T22:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Read-only Properties on API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Read-only-Properties-on-API/m-p/295816#M27732</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/106685"&gt;@avyer&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did a search on the Community here for that error message and I found this thread:&amp;nbsp;&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/Can-t-update-options-for-field-with-quot-optionsAreMutable-quot/m-p/271191" target="_blank"&gt;https://community.hubspot.com/t5/APIs-Integrations/Can-t-update-options-for-field-with-quot-optionsAreMutable-quot/m-p/271191&lt;/A&gt;, where the poster was able to update the enumeration options by making a PATCH request instead of a PUT request. I'll see if I can get an update to our documentation for that, since I'm not actually seeing it documented. But in the meantime, you can try doing your updates that way. I believe you need to send all options in the request, as opposed to just the new option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So for example you'd make a PATCH request to&amp;nbsp;&lt;SPAN&gt;/properties/v1/contacts/properties/named/hs_lead_status, and then you could pass in a body of something like:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
	"options": [
        {
            "label": "New",
            "displayOrder": 0,
            "hidden": false,
            "readOnly": null,
            "doubleData": null,
            "description": null,
            "value": "NEW"
        },
        {
            "label": "Open",
            "displayOrder": 1,
            "hidden": false,
            "readOnly": null,
            "doubleData": null,
            "description": null,
            "value": "OPEN"
        },
        {
            "label": "In Progress",
            "displayOrder": 2,
            "hidden": false,
            "readOnly": null,
            "doubleData": null,
            "description": null,
            "value": "IN_PROGRESS"
        },
        {
            "label": "Open Deal",
            "displayOrder": 2,
            "hidden": false,
            "readOnly": null,
            "doubleData": null,
            "description": null,
            "value": "OPEN_DEAL"
        },
        {
            "label": "Unqualified",
            "displayOrder": 3,
            "hidden": false,
            "readOnly": null,
            "doubleData": null,
            "description": null,
            "value": "UNQUALIFIED"
        },
        {
            "label": "Attempted to Contact",
            "displayOrder": 4,
            "hidden": false,
            "readOnly": null,
            "doubleData": null,
            "description": null,
            "value": "ATTEMPTED_TO_CONTACT"
        },
        {
            "label": "Connected",
            "displayOrder": 5,
            "hidden": false,
            "readOnly": null,
            "doubleData": null,
            "description": null,
            "value": "CONNECTED"
        },
        {
            "label": "Bad Timing",
            "displayOrder": 6,
            "hidden": false,
            "readOnly": null,
            "doubleData": null,
            "description": null,
            "value": "BAD_TIMING"
        },
        {
            "label": "A new status option",
            "displayOrder": 7,
            "hidden": false,
            "readOnly": false,
            "doubleData": null,
            "description": null,
            "value": "A_NEW_STATUS_OPTION"
        }
    ]
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope that helps.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 17:03:05 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Read-only-Properties-on-API/m-p/295816#M27732</guid>
      <dc:creator>lscanlan</dc:creator>
      <dc:date>2019-10-09T17:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Read-only Properties on API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Read-only-Properties-on-API/m-p/295826#M27735</link>
      <description>&lt;P&gt;I was actually going to bring up the method because the update in the UI actually uses the PATCH request but I wasn't sure if its a viable method to be used for the API intergration. This works well, thank you for the reply.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 17:44:34 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Read-only-Properties-on-API/m-p/295826#M27735</guid>
      <dc:creator>avyer</dc:creator>
      <dc:date>2019-10-09T17:44:34Z</dc:date>
    </item>
  </channel>
</rss>

