# Error running graph using Simple HTTP API

**URL:** https://forum.cloverdx.com/t/error-running-graph-using-simple-http-api/2025
**Category:** CloverDX Platform
**Created:** [February 25, 2019, 12:00am UTC](https://forum.cloverdx.com/t/error-running-graph-using-simple-http-api/2025 "2019-02-25T00:00:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![hewills](https://avatars.discourse-cdn.com/v4/letter/h/839c29/32.png) [@hewills](https://forum.cloverdx.com/u/hewills)
#### Post date: [February 25, 2019, 12:00am UTC](https://forum.cloverdx.com/t/error-running-graph-using-simple-http-api/2025/1 "2019-02-25T00:00:00Z")

</div>

I’m using CloverDX 5.1, and I’m trying to run a graph using the Simple HTTP API.

This is working fine for me:  
curl --header “X-Requested-By: arbitrary\_value” http://:\<\*\*\*\*\>@:/clover/simpleHttpApi/help

But when I try to run the command below, I get an error:

curl --header “X-Requested-By: arbitrary\_value” http://:\<\*\*\*\*\>@:/clover/simpleHttpApi/graph\_run?sandbox=Mysandbox&graphID=/graph/Jobs/Prod/Sample.grf

This is the error:  
Error running job: sandbox = Mysandbox, job file = null!  
=\> null’graphID’ is not recognized as an internal or external command, operable program or batch file.

It picks up the first parameter, but never the second. If I switch the sandbox and graphID parameter locations, it will read the graph path, but not the sandbox.

This is the error:  
Error running job: sandbox = null, job file = /graph/Jobs/Prod/Sample.grf  
=\> Execution failed.  
=\> Error loading job file: sandbox://default//graph/Jobs/Prod/Sample.grf  
=\> /graph/Jobs/Prod/Sample.grf’sandbox’ is not recognized as an internal or external command, operable program or batch file.

Am I using the wrong syntax? It doesn’t seem to be reading the second parameter.

---

<div class="post-metadata">

### Author: ![hewills](https://avatars.discourse-cdn.com/v4/letter/h/839c29/32.png) [@hewills](https://forum.cloverdx.com/u/hewills)
#### Post date: [February 26, 2019, 7:38pm UTC](https://forum.cloverdx.com/t/error-running-graph-using-simple-http-api/2025/2 "2019-02-26T19:38:15Z")

</div>

I figured out what I was missing.  
I needed to enclose the full URL in double quotes.

Example:

curl --header “X-Requested-By: arbitrary\_value” "http://:\<\*\*\*\*\>@:/clover/simpleHttpApi/graph\_run?sandbox=Mysandbox&graphID=/graph/Jobs/Prod/Sample.grf  
"
