# Adding a value to a deal property

**URL:** <https://community.hubspot.com/t/adding-a-value-to-a-deal-property/95576>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [December 7, 2023, 10:08am UTC](https://community.hubspot.com/t/adding-a-value-to-a-deal-property/95576 "2023-12-07T10:08:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_T](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mark_t/32/193320_2.png) [@Mark\_T](https://community.hubspot.com/u/Mark_T)\
**Post date:** [December 7, 2023, 10:08am UTC](https://community.hubspot.com/t/adding-a-value-to-a-deal-property/95576/1 "2023-12-07T10:08:47Z")

</div>

Hi,

We have a dropdown select property within Deals that has 310 values.

I’ve read the documentation for doing an update on a property, but it seems to suggest that you have to pass all the values that currently exist, plus the one you’re going to add to the endpoint. Have I got this wrong? If so, can someone give an example of how to add one value?

This is using:

**PATCH** /crm/v3/properties/{objectType}/{propertyName}"

Thanks,

M.

---

<div class="post-metadata">

**Author:** ![SteveHTM](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stevehtm/32/22074_2.png) [@SteveHTM](https://community.hubspot.com/u/SteveHTM)\
**Post date:** [December 7, 2023, 7:15pm UTC](https://community.hubspot.com/t/adding-a-value-to-a-deal-property/95576/2 "2023-12-07T19:15:33Z")

</div>

[@Mark\_T](https://community.hubspot.com/t5/user/viewprofilepage/user-id/326113) - yes, I have a similar challenge on a dropdown selector with a crazy 530 options (and growing).

To maintain the value automatically, I have to grab the existing list using a Contact property GET query:

“[https://api.hubapi.com/crm/v3/properties/](https://api.hubapi.com/crm/v3/properties/)” + contact\_type + “/” + property\_name

Then I check that the new option(s) being added don’t duplicate anything that already is on that list - if not the new option is appended.

The last step is an update to the options as a PATCH as you describe:

“[https://api.hubapi.com/crm/v3/properties/](https://api.hubapi.com/crm/v3/properties/)” + contact\_type + “/” + property\_name

(I actually have to keep Contact/Company/Deal properties in step with further patch calls)

If I was cleverer, then I’d also find a way to subtract obsolete values from the list so that it doesn’t grow without bounds!

Hope this is helpful,

Steve

---

<div class="post-metadata">

**Author:** ![Mark\_T](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mark_t/32/193320_2.png) [@Mark\_T](https://community.hubspot.com/u/Mark_T)\
**Post date:** [December 8, 2023, 7:56am UTC](https://community.hubspot.com/t/adding-a-value-to-a-deal-property/95576/3 "2023-12-08T07:56:16Z")

</div>

Hi, thanks for coming back to me.

Yes, I’d already thought about doing things that way, using GET on the same property endpoint to get all the current values and then adding what you want as part of a PATCH.

I was just concerned that if there was an error part-way through the patch operation that I could potentially lose all the current values. Has the this solution been reliable for you? Have you ever had any issues with it?

Thanks,

M\>

---

<div class="post-metadata">

**Author:** ![SteveHTM](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stevehtm/32/22074_2.png) [@SteveHTM](https://community.hubspot.com/u/SteveHTM)\
**Post date:** [December 8, 2023, 2:29pm UTC](https://community.hubspot.com/t/adding-a-value-to-a-deal-property/95576/4 "2023-12-08T14:29:11Z")

</div>

A fair concern, but the PATCH operation seems to be atomic in nature - it appears not to clear any of the existing values, just incrementally add the new options.

Happy coding!

Steve

---

<div class="post-metadata">

**Author:** ![Mark\_T](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mark_t/32/193320_2.png) [@Mark\_T](https://community.hubspot.com/u/Mark_T)\
**Post date:** [December 8, 2023, 4:26pm UTC](https://community.hubspot.com/t/adding-a-value-to-a-deal-property/95576/5 "2023-12-08T16:26:18Z")

</div>

Really?

I have a list with 310 items. If I add number 311 using patch and that’s all that in the list I submit, it removes all the previous values.

I wish that wasn’t the case, it seems really inefficient to have to submit all 311 back in the PATCH action.

Regards.

M.

---

<div class="post-metadata">

**Author:** ![SteveHTM](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stevehtm/32/22074_2.png) [@SteveHTM](https://community.hubspot.com/u/SteveHTM)\
**Post date:** [December 9, 2023, 9:14pm UTC](https://community.hubspot.com/t/adding-a-value-to-a-deal-property/95576/6 "2023-12-09T21:14:01Z")

</div>

Worth submitting as an idea if you feel strongly about this alternate option.
