Can't create datetime property (500 error)

Hello

I need to create a datetime property but everytime I try with the endpoint module, 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 \
--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.

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 to verify you are sending the date format that’s expected.

We are also having the same issue.