Skip to content
Developers
Get an API token

Novi UDM Data (v4) API

Cancel a query

Stop a running query, using the statementHandle from Run a query.

Cancel a query

POST/api/v2/statements/{statementHandle}/cancel

Stop a running query, using the statementHandle from Run a query.

Send a Snowflake programmatic access token as a bearer token on every request. Authentication

Parameters

Path parameters

  • statementHandlestringRequired

    Format uuid

    The statementHandle from Run a query.

Header parameters

  • User-AgentstringRequired

    Your application's name and version, for example myApplication/1.0. Snowflake requires a value that complies with RFC 7231.

Responses

200 OK

Snowflake cancelled the query.

  • statementHandlestringRequired

    Format uuid

  • codestringOptional

    Snowflake status code. Read it with message.

  • sqlStatestringOptional

  • messagestringOptional

  • statementStatusUrlstringOptional

    Format uri-reference

    Path to the statement's status.

Errors

StatusWhen
422

Snowflake could not cancel it, for example because no statement has that handle. message says why.

Shared errors400401403404500503504What they mean