<?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: How to locate recordId for Properties via API in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-locate-recordId-for-Properties-via-API/m-p/1064004#M77883</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/850688"&gt;@Bill_Reynolds&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming your existing Deal property "d_tools_project" already is &lt;EM&gt;type&lt;/EM&gt; "enumeration" and &lt;EM&gt;fieldType&lt;/EM&gt; "select", all you'll need to supply in the update property API call are the valid value options. Here's the relevant&amp;nbsp;&lt;A href="https://developers.hubspot.com/beta-docs/reference/api/crm/properties" target="_blank" rel="noopener"&gt;HubSpot API documentation&lt;/A&gt;. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;STRONG&gt;PATCH&lt;/STRONG&gt; https://api.hubapi.com&lt;SPAN&gt;/crm/v3/properties/:OBJECT_TYPE/:PROPERTY_NAME&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;e.g. &lt;STRONG&gt;PATCH&lt;/STRONG&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;EM&gt;https://api.hubapi.com/crm/v3/properties/deal/d_tools_project&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Example Request JSON body&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
    "options": [
        {
            "label": "Option A",
            "value": "A",
            "hidden": false, // optional
            "description": "Choice number one", // optional
            "displayOrder": 1 // optional
        },
        {
            "label": "Option B",
            "value": "B",
            "hidden": false, // optional
            "description": "Choice number two", // optional
            "displayOrder": 2 // optional
        }
    ]
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope that proves helpful. Please let me know if you have any follow-up questions.&lt;/P&gt;</description>
    <pubDate>Sat, 02 Nov 2024 00:11:33 GMT</pubDate>
    <dc:creator>zach_threadint</dc:creator>
    <dc:date>2024-11-02T00:11:33Z</dc:date>
    <item>
      <title>How to locate recordId for Properties via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-locate-recordId-for-Properties-via-API/m-p/1063501#M77843</link>
      <description>&lt;P&gt;I'm trying to PATCH (Update) a Property&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I went here first:&amp;nbsp;&lt;A href="https://developers.hubspot.com/beta-docs/guides/api/crm/properties" target="_blank"&gt;https://developers.hubspot.com/beta-docs/guides/api/crm/properties&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;for guidance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I pulled down a list of properties:&lt;/P&gt;&lt;P&gt;GET &lt;A href="https://api.hubapi.com/crm/v3/properties/deal" target="_blank"&gt;https://api.hubapi.com/crm/v3/properties/deal&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The list is accurate, and all the data about each property is there, but not any 'id' value. In order to update (PATCH) a property I need '&lt;SPAN&gt;recordId', but cannot find this is the parameters listed for any property.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;THANK YOU for any pointers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;From docs: "crm/v3/objects/{objectType}/{recordId}"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"options": [
{
"label": "Label 1",
"value": "Value 1",

"description": "",
"displayOrder": 0,
"hidden": false
},
{
"label": "Label 2",
"value": "Value 2",
"description": "",
"displayOrder": 1,
"hidden": false
}
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 20:33:00 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-locate-recordId-for-Properties-via-API/m-p/1063501#M77843</guid>
      <dc:creator>Bill_Reynolds</dc:creator>
      <dc:date>2024-10-31T20:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to locate recordId for Properties via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-locate-recordId-for-Properties-via-API/m-p/1063527#M77849</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/850688"&gt;@Bill_Reynolds&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Here are two ways you can get your Deal IDs so you can update records:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Make a request to the &lt;STRONG&gt;&lt;A href="https://developers.hubspot.com/beta-docs/reference/api/crm/objects/deals#get-%2Fcrm%2Fv3%2Fobjects%2Fdeals" target="_blank" rel="noopener"&gt;Deals endpoint&lt;/A&gt;&lt;/STRONG&gt; to get back&amp;nbsp;&lt;STRONG&gt;all&lt;/STRONG&gt; records for the deals object&lt;BR /&gt;&lt;LI-CODE lang="javascript"&gt;GET https://api.hubapi.com/crm/v3/objects/deals&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;LI&gt;If you need a more targeted approach, I'd recommend the &lt;A href="https://developers.hubspot.com/beta-docs/guides/api/crm/search" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;Search API&lt;/STRONG&gt;&lt;/A&gt;. You can filter your results as well as specify what properties you want retuned in the response — &lt;A href="https://developers.hubspot.com/beta-docs/guides/api/crm/search#filter-search-results" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;Filters&lt;/STRONG&gt;&lt;/A&gt; and &lt;A href="https://developers.hubspot.com/beta-docs/guides/api/crm/search#search-default-searchable-properties:~:text=%7D-,To%20return%20a%20specific%20set%20of%20properties%2C,-include%20a%20properties" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;Properties&lt;/STRONG&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Have fun testing! — Jaycee&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 21:43:14 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-locate-recordId-for-Properties-via-API/m-p/1063527#M77849</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2024-10-31T21:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to locate recordId for Properties via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-locate-recordId-for-Properties-via-API/m-p/1063559#M77852</link>
      <description>&lt;P&gt;Hi Jaycee, thanks for the info! What I'm really trying to do is access a 'Property' which is a&amp;nbsp;"fieldType": "select", to populate a listbox from an outside system. The property is defined as a 'Deal Property', and I can see it via the API, I just can't find a '&lt;SPAN&gt;recordId' to update it.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I query it, "&lt;A href="https://api.hubapi.com/crm/v3/properties/deal/my_property_name&amp;quot;" target="_blank"&gt;https://api.hubapi.com/crm/v3/properties/deal/my_property_name"&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I get back the property object, but it doesn't have a&amp;nbsp;'recordId' to update it via. Which makes me think I'm going about this all wrong...???&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BTW Here is the object returned from the query, if it sheds more light on things. This is the list I want to update programmatically via the API &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "updatedAt": "2024-10-31T18:11:58.521Z",
    "createdAt": "2024-10-29T23:43:29.774Z",
    "name": "d_tools_project",
    "label": "D-Tools Project",
    "type": "enumeration",
    "fieldType": "select",
    "description": "Bill R. is working on this.",
    "groupName": "dealinformation",
    "options": [
        {
            "label": "This is where the thing will go",
            "value": "This is where the thing will go",
            "description": "",
            "displayOrder": 0,
            "hidden": false
        },
        {
            "label": "Label 2",
            "value": "Label 2",
            "description": "",
            "displayOrder": 1,
            "hidden": false
        }
    ],
    "createdUserId": "10857906",
    "updatedUserId": "70179506",
    "displayOrder": -1,
    "calculated": false,
    "externalOptions": false,
    "archived": false,
    "hasUniqueValue": false,
    "hidden": false,
    "modificationMetadata": {
        "archivable": true,
        "readOnlyDefinition": false,
        "readOnlyValue": false
    },
    "formField": true,
    "dataSensitivity": "non_sensitive"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 23:45:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-locate-recordId-for-Properties-via-API/m-p/1063559#M77852</guid>
      <dc:creator>Bill_Reynolds</dc:creator>
      <dc:date>2024-10-31T23:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to locate recordId for Properties via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-locate-recordId-for-Properties-via-API/m-p/1063859#M77869</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/850688"&gt;@Bill_Reynolds&lt;/a&gt;&amp;nbsp;- I think I am seeing a misunderstanding behind the details here. An record - like a Contact or Deal - does have a record id value (the internal name of this property on a Deal is actually 'hs_object_id'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The property itself is uniquely referenced by a combination of this record id value and the internal name of the property itself. There is no ID value for the property.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, by a quick scan of the API JSON you provided in the initial query, you are trying to patch a property with the internal name of 'd_tools_project' The parameters provided look consistent to me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to update the definition of a property on this object (the available dropdown choices for example) then you have all you need to construct a property update using the object type:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://api.hubapi.com/crm/v3/properties/{objectType}" target="_blank"&gt;https://api.hubapi.com/crm/v3/properties/{objectType}&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;But bear in mind the update will need to contain the old values AND the new ones - you can't just add to the list in a single API operation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are looking to set a value on an existing deal record for example, then the patch operation will need&amp;nbsp; the deal ID.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://api.hubapi.com/crm/v3/objects/deals/{dealId}" target="_blank"&gt;https://api.hubapi.com/crm/v3/objects/deals/{dealId}&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 17:07:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-locate-recordId-for-Properties-via-API/m-p/1063859#M77869</guid>
      <dc:creator>SteveHTM</dc:creator>
      <dc:date>2024-11-01T17:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to locate recordId for Properties via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-locate-recordId-for-Properties-via-API/m-p/1063987#M77880</link>
      <description>&lt;P&gt;Hi Steve, thanks for the response!&lt;/P&gt;&lt;P&gt;I'm still stuck, and hoping these snippets help me get better clarity...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using a POST to&amp;nbsp;&lt;A href="https://api.hubapi.com/crm/v3/properties/deal" target="_blank"&gt;https://api.hubapi.com/crm/v3/properties/deal&lt;/A&gt;&amp;nbsp;with a body of, in an attempt to create a property list, as a test, using the existing name of the property I'm hoping to update.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here was the body of the request sent:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "groupName": "dealinformation",
  "name": "d_tools_project",
  "label": "D-Tools Project",
  "type": "enumeration",
  "fieldType": "select"
}&lt;/LI-CODE&gt;&lt;P&gt;...and here is the response...&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "status": "error",
    "message": "A property named 'd_tools_project' already exists.",
    "correlationId": "134cb914-748f-426a-b130-4c3612cd53fd",
    "context": {
        "name": [
            "d_tools_project"
        ]
    },
    "category": "OBJECT_ALREADY_EXISTS",
    "subCategory": "Properties.PROPERTY_WITH_NAME_EXISTS"
}&lt;/LI-CODE&gt;&lt;P&gt;...which tells me I'm in the ballpark, and the error is correct - the property does already exist.&lt;/P&gt;&lt;P&gt;What I'm lacking now is the syntax for updating/patching this propery.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you offer me more advice on how to update or replace this property?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 22:53:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-locate-recordId-for-Properties-via-API/m-p/1063987#M77880</guid>
      <dc:creator>Bill_Reynolds</dc:creator>
      <dc:date>2024-11-01T22:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to locate recordId for Properties via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-locate-recordId-for-Properties-via-API/m-p/1063999#M77881</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/850688"&gt;@Bill_Reynolds&lt;/a&gt;&amp;nbsp;- seems like you are close. If you use the property update API (PATCH) the property name goes into the API URL:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://api.hubapi.com/crm/v3/properties/{objectType}/{propertyName}" target="_blank"&gt;https://api.hubapi.com/crm/v3/properties/{objectType}/{propertyName}&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The parameters are likely to be something like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
  "groupName": "dealinformation",
  "options": [
    {
      "label": "Option A",
      "value": "A",
      "hidden": false,
      "description": "Choice number one",
      "displayOrder": 1
    },
    {
      "label": "Option B",
      "value": "B",
      "hidden": false,
      "description": "Choice number two",
      "displayOrder": 2
    }
  ],
  "label": "D-Tools Project",
  "type": "enumeration",
  "fieldType": "select"
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Happy hunting!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 23:57:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-locate-recordId-for-Properties-via-API/m-p/1063999#M77881</guid>
      <dc:creator>SteveHTM</dc:creator>
      <dc:date>2024-11-01T23:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to locate recordId for Properties via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-locate-recordId-for-Properties-via-API/m-p/1064004#M77883</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/850688"&gt;@Bill_Reynolds&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming your existing Deal property "d_tools_project" already is &lt;EM&gt;type&lt;/EM&gt; "enumeration" and &lt;EM&gt;fieldType&lt;/EM&gt; "select", all you'll need to supply in the update property API call are the valid value options. Here's the relevant&amp;nbsp;&lt;A href="https://developers.hubspot.com/beta-docs/reference/api/crm/properties" target="_blank" rel="noopener"&gt;HubSpot API documentation&lt;/A&gt;. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;STRONG&gt;PATCH&lt;/STRONG&gt; https://api.hubapi.com&lt;SPAN&gt;/crm/v3/properties/:OBJECT_TYPE/:PROPERTY_NAME&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;e.g. &lt;STRONG&gt;PATCH&lt;/STRONG&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;EM&gt;https://api.hubapi.com/crm/v3/properties/deal/d_tools_project&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Example Request JSON body&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
    "options": [
        {
            "label": "Option A",
            "value": "A",
            "hidden": false, // optional
            "description": "Choice number one", // optional
            "displayOrder": 1 // optional
        },
        {
            "label": "Option B",
            "value": "B",
            "hidden": false, // optional
            "description": "Choice number two", // optional
            "displayOrder": 2 // optional
        }
    ]
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope that proves helpful. Please let me know if you have any follow-up questions.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2024 00:11:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-locate-recordId-for-Properties-via-API/m-p/1064004#M77883</guid>
      <dc:creator>zach_threadint</dc:creator>
      <dc:date>2024-11-02T00:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to locate recordId for Properties via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-locate-recordId-for-Properties-via-API/m-p/1064337#M77894</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811"&gt;@zach_threadint&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/63499"&gt;@SteveHTM&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;&amp;nbsp;for all your contributions - as a newbie to HubSpot I very much appreciate the hand-holding and benefit of all your knowledge. Best regards to everyone!&lt;/P&gt;</description>
      <pubDate>Sun, 03 Nov 2024 23:15:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-locate-recordId-for-Properties-via-API/m-p/1064337#M77894</guid>
      <dc:creator>Bill_Reynolds</dc:creator>
      <dc:date>2024-11-03T23:15:06Z</dc:date>
    </item>
  </channel>
</rss>

