Hello Developer Community!
I’m trying to create a field that includes date and time using the HubSpot API documentation. I’m using the following endpoint:
I’ve set up all the necessary parameters and added the token from our private app, which is receiving API calls correctly.
The generated payload is as follows:
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”: “Recuperar fecha y hora del showroom”,
“label”: “TestDateTime”,
“type”: “datetime”,
“groupName”: “contactinformation”,
“name”: “createdatetime”,
“fieldType”: “date”,
“formField”: true,
“referencedObjectType”: “string”,
“calculationFormula”: “string”,
“hasUniqueValue”: false,
“externalOptions”: true
}’
The error message we’re receiving is as follows:
HTTP 400
{
“status”: “error”,
“message”: “Property failed validation.”,
“correlationId”: “6db07f03-1611-4fbd-a15c-4b454fad7fd9”,
“category”: “VALIDATION_ERROR”,
“subCategory”: “Properties.PROPERTY_CREATE_FAILED_VALIDATION”
}
I’ve carefully checked all the input parameters and everything seems to be in order. Can anyone help me understand why it’s not working or what I might be doing wrong?

