# Update date picker via API

**URL:** <https://community.hubspot.com/t/update-date-picker-via-api/68214>\
**Category:** APIs & Integrations\
**Tags:** oauth\
**Created:** [October 31, 2022, 1:50pm UTC](https://community.hubspot.com/t/update-date-picker-via-api/68214 "2022-10-31T13:50:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ychakka](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ychakka/32/29572_2.png) [@ychakka](https://community.hubspot.com/u/ychakka)\
**Post date:** [October 31, 2022, 1:50pm UTC](https://community.hubspot.com/t/update-date-picker-via-api/68214/1 "2022-10-31T13:50:03Z")

</div>

Hello Community,

I have a custom date picker field contract\_start\_date on deals. I am using private apps and following patch API call:

[https://api.hubapi.com/crm/v3/objects/deals/10721724537](https://api.hubapi.com/crm/v3/objects/deals/10721724537)

JSON Body is:

{

“properties”: {

```
"contract\_start\_date": "1572480000000"

```

}

}

But i get following error:

Property values were not valid: [{\“isValid\”:false,\“message\”:\“Property \\\“contract\_start\_date\\\” does not exist\”,\“error\”:\“PROPERTY\_DOESNT\_EXIST\”,\“name\”:\“contract\_start\_date\”}]

Need urgent help!

---

<div class="post-metadata">

**Author:** ![weiliang\_lee](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/weiliang_lee/32/81774_2.png) [@weiliang\_lee](https://community.hubspot.com/u/weiliang_lee)\
**Post date:** [November 1, 2022, 2:08am UTC](https://community.hubspot.com/t/update-date-picker-via-api/68214/2 "2022-11-01T02:08:12Z")

</div>

Hi there,

Are you able to confirm the internal name of your property?

For example, my property labelled amount would have an internal name as such (both similar):

 ![LeeWeiliang_0-1667268212790.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/a/da0b921f6d13ceda79ce1b680f167cc7682a1240.png)

My suspicion is that you could have created the label as contract\_start\_date and the internal name could be different, hence the error you’re getting.

Cheers  
WL

---

<div class="post-metadata">

**Author:** ![ychakka](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ychakka/32/29572_2.png) [@ychakka](https://community.hubspot.com/u/ychakka)\
**Post date:** [November 1, 2022, 1:05pm UTC](https://community.hubspot.com/t/update-date-picker-via-api/68214/3 "2022-11-01T13:05:04Z")

</div>

HEllo Lee,

Thanks for responding.

I checked in hubspot and the Label of the property is Contract Start Date and the schema/logical name of the field is contract\_start\_date. I am attaching the screenshot

---

<div class="post-metadata">

**Author:** ![weiliang\_lee](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/weiliang_lee/32/81774_2.png) [@weiliang\_lee](https://community.hubspot.com/u/weiliang_lee)\
**Post date:** [November 1, 2022, 3:28pm UTC](https://community.hubspot.com/t/update-date-picker-via-api/68214/4 "2022-11-01T15:28:24Z")

</div>

Hi there,

Are you sure you’ve created the property in the correct place? I too did (create the exact same property name) try out be sure, and your JSON body is valid and I could update my deal object successfully.

Could you have created the property under Contacts instead? Because when you first land on the properties page, it is Contacts by default:

 ![LeeWeiliang_0-1667316473814.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/6/3/632d3cd1ec165f61bef18b5917cd21380818960d.png)

Cheers

WL

---

<div class="post-metadata">

**Author:** ![YBen-Avraham](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/yben-avraham/32/13435_2.png) [@YBen-Avraham](https://community.hubspot.com/u/YBen-Avraham)\
**Post date:** [May 16, 2023, 6:22am UTC](https://community.hubspot.com/t/update-date-picker-via-api/68214/5 "2023-05-16T06:22:28Z")

</div>

As you can see, we have updated values from our external application - so far successfully. The wrinkle came when I created a new Customer Date Picker property ‘last\_api\_update’ - but it doesn’t populate the property. Are we doing something wrong either in the definition of our property or the definition of the API string?

 ![HubSpot - API Date Issue.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/e/4/e46dd99168a10153439c4832d397ba1e4baa6ccd.png)

Any and all assistance will be greatly appreciated!

Yoel
