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

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

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

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

Headers

X-Dune-Api-Key
string
required

API Key for the service

Path Parameters

queryId
integer
required

Query ID

Query Parameters

api_key
string

API Key, alternative to using the HTTP header X-Dune-Api-Key

Response

200
application/json
OK
query_id
integer

The unique ID of the query that was updated