# Can't create datetime property (500 error)

**URL:** <https://community.hubspot.com/t/cant-create-datetime-property-500-error/99007>\
**Category:** APIs & Integrations\
**Tags:** professional, timeline-and-extensions-apis\
**Created:** [January 30, 2024, 3:42pm UTC](https://community.hubspot.com/t/cant-create-datetime-property-500-error/99007 "2024-01-30T15:42:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![OmarM18](https://avatars.discourse-cdn.com/v4/letter/o/ed655f/32.png) [@OmarM18](https://community.hubspot.com/u/OmarM18)\
**Post date:** [January 30, 2024, 3:42pm UTC](https://community.hubspot.com/t/cant-create-datetime-property-500-error/99007/1 "2024-01-30T15:42:17Z")

</div>

Hello

I need to create a datetime property but everytime I try with the endpoint [module](https://developers.hubspot.com/docs/api/crm/properties), it gives me a 500 error like this:

This is the answer.

HTTP 500  
{  
“status”: “error”,  
“message”: “internal error”,  
“correlationId”: “452ab9ae-4e5c-4263-9102-cb9b8521655e”  
}

This was the request:

curl --request POST \  
--url [https://api.hubapi.com/crm/v3/properties/contact](https://api.hubapi.com/crm/v3/properties/contact) \  
--header ‘authorization: Bearer YOUR\_ACCESS\_TOKEN’ \  
--header ‘content-type: application/json’ \  
--data ‘{  
“hidden”: false,  
“displayOrder”: 2,  
“description”: “start time for jobs booked”,  
“label”: “Start Time Jobs”,  
“type”: “datetime”,  
“groupName”: “conversioninformation”,  
“name”: “starttimer\_4”,  
“fieldType”: “date”,  
“formField”: true,  
“referencedObjectType”: “datetime”,  
“calculationFormula”: “string”,  
“hasUniqueValue”: false,  
“externalOptions”: true  
}’

I tried to create the datetime property insi

Please we need your support on this.

---

<div class="post-metadata">

**Author:** ![Tino\_p](https://avatars.discourse-cdn.com/v4/letter/t/51bf81/32.png) [@Tino\_p](https://community.hubspot.com/u/Tino_p)\
**Post date:** [January 30, 2024, 5:39pm UTC](https://community.hubspot.com/t/cant-create-datetime-property-500-error/99007/2 "2024-01-30T17:39:50Z")

</div>

I had a similar issue a while back; for me, it was the format of the date string. I’ve noticed that the online documentation is not always correct; maybe try checking the [Github repo](https://github.com/HubSpot) to verify you are sending the date format that’s expected.

---

<div class="post-metadata">

**Author:** ![AGalante](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@AGalante](https://community.hubspot.com/u/AGalante)\
**Post date:** [February 10, 2024, 4:41pm UTC](https://community.hubspot.com/t/cant-create-datetime-property-500-error/99007/3 "2024-02-10T16:41:48Z")

</div>

We are also having the same issue.
