Error with "\"startTime\" \"endTime\" can’t figure out what I’m missing here

Your question may already have an answer on the community forum. Please search for related topics, and then read through the guidelines before creating a new topic.

Here’s an outline with best practices for making your inquiry.

My question: So guys I have been working with an API, trying to send a POST request to create a route using the API. However I keep getting this error when I go to send a request

{
“message”: “"startTime" is missing from query string; "endTime" is missing from query string”,
“requestId”: “ntuggmxp-apkqbjke”
}

Not sure what I’m missing here, I’ve been banging my head on this for HOURS. Any help would be massively appreciated.

Here is the code “body” I’m using. It’s raw JSON:

curl --location --request POST *****
–header ‘accept: application/json’
–header 'authorization: ****
–header ‘content-type: application/json’
–data-raw ‘{
“settings”: {
“routeCompletionCondition”: “arriveLastStop”,
“routeStartingCondition”: “departFirstStop”
},
“stops”: [
{
“addressId”: “47200746”,
“name”: “ParTruckDC”,
“scheduledDepartureTime”: “2023-02-22T14:00:00Z”
},
{
“addressId”: “47200866”,
“name”: “McDonaldsJVille”,
“scheduledArrivalTime”: “2023-02-22T14:15:00Z”,
“scheduledDepartureTime”: “2023-02-22T14:30:00Z”
},
{
“addressId”: “47200945”,
“name”: “McDonaldsCab”,
“scheduledArrivalTime”: “2023-02-22T14:45:00Z”,
“scheduledDepartureTime”: “2023-02-22T15:00:00Z”
},
{
“addressId”: “47201053”,
“name”: “McDonaldsBB”,
“scheduledArrivalTime”: “2023-02-22T15:20:00Z”,
“scheduledDepartureTime”: “2023-02-22T15:30:00Z”
},
{
“addressId”: “47200746”,
“name”: “ParTruckDC”,
“scheduledArrivalTime”: “2023-02-22T16:00:00Z”
}
],
“name”: “MWF McDonalds Route”,
“vehicleId”: “281474984524209”
}’

I’ve already tried: EVERYTHING!

You’ll need to read the API specification to work out what it requires.

However, you don’t appear to be sending any query strings.
It looks like you are using a JSON body instead.

Query strings show in the URL with question marks with the parameters separated by &.

https://postman-echo.com/get?test1=123&test2=345