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 'recordId', but cannot find this is the parameters listed for any property.
THANK YOU for any pointers.
From docs: "crm/v3/objects/{objectType}/{recordId}"
Assuming your existing Deal property "d_tools_project" already is type "enumeration" and fieldType "select", all you'll need to supply in the update property API call are the valid value options. Here's the relevant HubSpot API documentation. For example:
Thank you @zach_threadint@SteveHTM and @Jaycee_Lewis 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!
@Bill_Reynolds - 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'
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.
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.
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:
I'm still stuck, and hoping these snippets help me get better clarity...
I tried using a POST to https://api.hubapi.com/crm/v3/properties/deal 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.
Assuming your existing Deal property "d_tools_project" already is type "enumeration" and fieldType "select", all you'll need to supply in the update property API call are the valid value options. Here's the relevant HubSpot API documentation. For example:
Hi Jaycee, thanks for the info! What I'm really trying to do is access a 'Property' which is a "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 'recordId' to update it.
Hey, @Bill_Reynolds👋 Here are two ways you can get your Deal IDs so you can update records:
Make a request to the Deals endpoint to get back all records for the deals object
GET https://api.hubapi.com/crm/v3/objects/deals
If you need a more targeted approach, I'd recommend the Search API. You can filter your results as well as specify what properties you want retuned in the response — Filters and Properties