I am getting the following error when I submit an API call using curl:
=======
{
“name”: “Consult: Established Pt for Dr.example”,
“slug”: “doc-example”,
“duration”: “1800000”,
“meetingLink”: “https://meetings.hubspot.com/doc-example”",
“startTime”: “2025-04-14T11:30:00-04:00”,
“timezone”: “America/New_York”,
“email”: “manny@xxx.com”,
“firstName”: “Manny”,
“lastName”: “Jackson”,
“formFields”: [
{
“name”: “phone”,
“value”: “3472327411”
},
{
“name”: “date_of_birth”,
“value”: “447656400”
},
{
“name”: “all_appointment_type”,
“value”: “33”
}
],
“locale”: “en-us”,
“type”: “PERSONAL_LINK”
}
=======
I am using using this documenation - I am using the following documenation: Accounts Dashboard | HubSpot
I am getting the following error:
{“status”:“error”,“message”:“formFields contains invalid name(s)”,“correlationId”:“67f90eaa-0000-0000-0b8a-fbaff6cd137e”,“context”:{“formFields”:[“[ExternalBookingFormField{name=phone, value=3472327411}, ExternalBookingFormField{name=date_of_birth, value=447656400}, ExternalBookingFormField{name=all_appointment_type, value=33}]”]},“category”:“VALIDATION_ERROR”}
If I remove the follwoing, then it works.
{
“name”: “all_appointment_type”,
“value”: “33”
}
This is how the form looks like - Screenshot by Lightshot
This is the property “all_appointment_type” - https://prnt.sc/nIghMqFd5qg_

