API Reference

Cancel a running query

Description

Cancels a running query based on the provided result ID, and returns a cancelled result unless the query's already in a COMPLETED state.

DELETE /api/v1/queryresult/{queryResultId}

🚧

Required OAuth Scopes:

No OAuth scopes are required to use this endpoint.

Parameters

ParameterInTypeRequiredDescription
queryResultIdpathstringtrueThe unique identifier of the query result

Code Samples

curl -X DELETE https://h.app.wdesk.com/s/wdata/prep/api/v1/queryresult/{queryResultId}  \ 
-H 'Accept: */*' \ 
-H 'Authorization: Bearer {access-token}'
http DELETE https://h.app.wdesk.com/s/wdata/prep/api/v1/queryresult/{queryResultId}  \ 
Accept:*/* \ 
Authorization:"Bearer {access-token}"
wget --method=DELETE "https://h.app.wdesk.com/s/wdata/prep/api/v1/queryresult/{queryResultId}" \
 --output-document -  \ 
 --header 'Accept: */*' \ 
 --header 'Authorization: Bearer {access-token}'
import requests
headers = {
  'Accept': '*/*',
  'Authorization': 'Bearer {access-token}'
}

r = requests.delete('https://h.app.wdesk.com/s/wdata/prep/api/v1/queryresult/{queryResultId}', headers = headers)

print(r.json())

Returns

200 - OK

Returns a JSON object with a body property, which contains a QueryResultDto object for the cancelled query.

Example Responses

No example available