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

**URL:** <https://community.postman.com/t/error-with-starttime-endtime-can-t-figure-out-what-i-m-missing-here/44363>\
**Category:** Help Hub\
**Tags:** collections, json\
**Created:** [February 23, 2023, 5:38am UTC](https://community.postman.com/t/error-with-starttime-endtime-can-t-figure-out-what-i-m-missing-here/44363 "2023-02-23T05:38:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dgreen0503](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@dgreen0503](https://community.postman.com/u/dgreen0503)\
**Post date:** [February 23, 2023, 5:38am UTC](https://community.postman.com/t/error-with-starttime-endtime-can-t-figure-out-what-i-m-missing-here/44363/1 "2023-02-23T05:38:01Z")

</div>

**Your question may already have an answer on the community forum. Please search for related topics, and then read through the [guidelines](https://community.postman.com/t/about-the-just-getting-started-category/37) 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!

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [February 23, 2023, 11:15am UTC](https://community.postman.com/t/error-with-starttime-endtime-can-t-figure-out-what-i-m-missing-here/44363/2 "2023-02-23T11:15:54Z")

</div>

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](https://postman-echo.com/get?test1=123&test2=345)
