POST
/
v1
/
query
/
{queryId}
/
archive
curl --request GET \
  --url https://api.dune.com/api/v1/query/{queryId}/archive \
  --header 'X-DUNE-API-KEY: <x-dune-api-key>'
{
  "query_id": 1616880
}

In Dune context, delete action is replaced by archive as deletion of queries is not possible.

To access Query endpoints, a Plus plan or higher is required.

Headers

X-DUNE-API-KEY
string
required

API Key for the service

Path Parameters

queryId
integer
required

unique identifier of the query

Query Parameters

api_key
string

API Key for the service, alternative to using the HTTP header X-DUNE-API-KEY.

Response

200 - application/json
query_id
integer