Skip to main content

Cancel a submitted query

PATCH 

/query/:queryId/cancel

Request the cancellation of a submitted query.

caution

Due to the distributed nature of the Query API service, it may not be possible to cancel a query that is already being processed. In this case, users should request a new query - see: POST /query endpoint documentation.

Cancellation of a submitted query (identified by :queryId) can only be performed by the user who originally submitted it.



Required scope(s): [data.chf:query, data.indices:query]

Request

Path Parameters

    queryId stringrequired

    Unique identifier of the query.

    Example: 4DDC21D9-E30C-458A-80E2-642CA3238541

Body

required
    cancel boolean

    Should always be set to True.

Responses

Accepted - request to cancel query has been submitted.

Schema
    queryId string

    Unique identifier of the query.

    status boolean

    Current status of the query if cancelled or not.

    message string

    Response message when cancel request submitted.

    error string

    Details of the error if query cancel request failed.

Loading...