Cancel a submitted query
PATCH/query/:queryId/cancel
Request the cancellation of a submitted query.
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
Unique identifier of the query.
- application/json
Body
required
Should always be set to True.
Responses
- 202
- 401
- 403
- 404
- 500
Accepted - request to cancel query has been submitted.
- application/json
- Schema
- Example (from schema)
Schema
Unique identifier of the query.
Current status of the query if cancelled or not.
Response message when cancel request submitted.
Details of the error if query cancel request failed.
{
"queryId": "4DDC21D9-E30C-458A-80E2-642CA3238541",
"status": true,
"message": "CANCELLED",
"error": "string"
}
Unauthorized - invalid access token or requesting user is not the original query submitter.
- application/json
- Schema
- Example (from schema)
Schema
Details of the error.
{
"message": "string"
}
Forbidden - invalid access token or user not authorised.
- application/json
- Schema
- Example (from schema)
Schema
Details of the error.
{
"message": "string"
}
Query not found
- application/json
- Schema
- Example (from schema)
Schema
Details of the error.
{
"message": "string"
}
Internal server error - contact tech@gardin.ag for further assistance.
- application/json
- Schema
- Example (from schema)
Schema
Details of the error.
{
"message": "string"
}