Cancels the execution of a statement.

POST {{baseUrl}}/api/v2/statements/:statementHandle/cancel?requestId=<uuid>

Cancels the execution of the statement with the specified statement handle.

Request Params

KeyDatatypeRequiredDescription
requestIdstringUnique ID of the API request. This ensures that the execution is idempotent. If not specified, a new UUID is generated and assigned.

HEADERS

KeyDatatypeRequiredDescription
User-Agentstring(Required) Set this to the name and version of your application (e.g. “applicationName/applicationVersion”). You must use a value that complies with RFC 7231.
X-Snowflake-Authorization-Token-TypestringSpecify the authorization token type for the Authorization header. KEYPAIR_JWT is for Keypair JWT or OAUTH for oAuth token. If not specified, OAUTH is assumed.
Acceptstring

RESPONSES

status: OK

{&quot;statementHandle&quot;:&quot;\u003cuuid\u003e&quot;,&quot;code&quot;:&quot;\u003cstring\u003e&quot;,&quot;sqlState&quot;:&quot;\u003cstring\u003e&quot;,&quot;message&quot;:&quot;\u003cstring\u003e&quot;,&quot;statementStatusUrl&quot;:&quot;\u003curi\u003e&quot;}