SQL
sql.cancel
Cancel a SQL run
Details
- Endpoint
- POST /v1/execution/:execution_id/cancel
- Credits
- Free
- Rate class
- Light. Counts against your light requests per second.
- Also called
- /api/v1/execution/:execution_id/cancel
Stops a pending or running run started by the same key, session or IP. A cancelled run costs nothing.
Parameters
| Name | Type | Description |
|---|---|---|
| execution_idrequired | string |
Request
Send your key in the x-api-key header, or leave it out to use the keyless tier.
curl
curl -X POST "https://api.tide.ad/v1/execution/01019A4C0F2A8B3C4D5E6F708192A3B4C5/cancel" \
-H "x-api-key: YOUR_API_KEY" \
-H "content-type: application/json" \
-d '{}'TypeScript
const res = await fetch("https://api.tide.ad/v1/execution/01019A4C0F2A8B3C4D5E6F708192A3B4C5/cancel", {
method: "POST",
headers: {
"x-api-key": process.env.TIDE_API_KEY!,
"content-type": "application/json",
},
body: JSON.stringify({}),
});
const data = await res.json();Response
No example response is available for this method yet.