@joshuacos1977 Warm welcome to this Community
Just by quick eye-balling I see that JSON format is incorrect. Removed the trailing commas to fieldType.
{
"indexName":"contact",
"fields":[
{
"fieldName":"employeeid",
"fieldType":"Keyword"
},
{
"fieldName":"firstname"
},
{
"fieldName":"lastname"
},
{
"fieldName":"dob",
"fieldType":"DateTime"
}
]
}
Can you please try with this JSON?
Usually bad request happens when there is some error is your body which couldn’t be handled by your API, or some syntax error in the body