I tried to update a contact property called Campaign ID and all of the saved ID’s were overwritten by the new update. Is there a way to update properties using the properties API without overwriting them all. I want to add to the dropdown list.
I figured I’d chime in on this as I responded to your previous question that I feel is somwhat related. To confirm, you are hoping to append values to a dropdown property within HubSpot?
If that is the case it’s done using the Properties API. First you must first retrieve the property in question. This is done by making a request like this: GET crm/v3/properties/{objectType}/{propertyName}. This will return an array called “options” in the response, similar to the below. These are the existing options within the dropdown. In this instance “001” and “002”.
The result is the existing property being updated with the new value. It is expected behaviour that all values would be overwritten if we made a similar request to the above but simply just included “003”.
You are correct I am To confirm, hoping to append values to a dropdown property within HubSpot.
The property already exsists with about 200 or so values in the dropdown. I need to be able to append a new value submit by a form using the properties api. The only way to do this is send back all 200 or so plus the new one at the end?