Skip to content

Cancel statement

POST
/api/v1/statements/{statement_id}/cancel
curl --request POST \
--url https://example.com/api/v1/statements/example/cancel

Cancel a SQL statement.

statement_id
required
Statement Id

The ID of the statement to cancel

string

The ID of the statement to cancel

X-Environment-Id
Any of:
string

Successful Response

Media typeapplication/json
StatementCancelResponse

Response model for statement cancellation.

object
statement_id
required
Statement Id

Statement ID that was cancelled

string
status
required
Status

Status after cancellation

string
message
required
Message

Cancellation result message

string
Examplegenerated
{
"statement_id": "example",
"status": "example",
"message": "example"
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}