diff --git a/api-reference/crud/endpoint/archive.mdx b/api-reference/crud/endpoint/archive.mdx index 6d8fc0f7..b2e0790b 100644 --- a/api-reference/crud/endpoint/archive.mdx +++ b/api-reference/crud/endpoint/archive.mdx @@ -10,7 +10,7 @@ In Dune context, delete action is replaced by archive as deletion of queries is ```bash cURL -curl --request GET \ +curl --request POST \ --url https://api.dune.com/api/v1/query/{queryId}/archive \ --header 'X-DUNE-API-KEY: ' ``` @@ -33,14 +33,14 @@ url = "https://api.dune.com/api/v1/query/{queryId}/archive" headers = {"X-DUNE-API-KEY": ""} -response = requests.request("GET", url, headers=headers) +response = requests.request("POST", url, headers=headers) print(response.text) ``` ```javascript JavaScript -const options = {method: 'GET', headers: {'X-DUNE-API-KEY': ''}}; +const options = {method: 'POST', headers: {'X-DUNE-API-KEY': ''}}; fetch('https://api.dune.com/api/v1/query/{queryId}/archive', options) .then(response => response.json()) @@ -61,7 +61,7 @@ func main() { url := "https://api.dune.com/api/v1/query/{queryId}/archive" - req, _ := http.NewRequest("GET", url, nil) + req, _ := http.NewRequest("POST", url, nil) req.Header.Add("X-DUNE-API-KEY", "") @@ -88,7 +88,7 @@ curl_setopt_array($curl, [ CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, - CURLOPT_CUSTOMREQUEST => "GET", + CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_HTTPHEADER => [ "X-DUNE-API-KEY: " ], @@ -107,9 +107,9 @@ if ($err) { ``` ```java Java -HttpResponse response = Unirest.get("https://api.dune.com/api/v1/query/{queryId}/archive") +HttpResponse response = Unirest.post("https://api.dune.com/api/v1/query/{queryId}/archive") .header("X-DUNE-API-KEY", "") .asString(); ``` - \ No newline at end of file + diff --git a/api-reference/crud/endpoint/private.mdx b/api-reference/crud/endpoint/private.mdx index 1c52343f..2cfa1651 100644 --- a/api-reference/crud/endpoint/private.mdx +++ b/api-reference/crud/endpoint/private.mdx @@ -6,7 +6,7 @@ openapi: 'POST /v1/query/{queryId}/private' ```bash cURL -curl --request GET \ +curl --request POST \ --url https://api.dune.com/api/v1/query/{queryId}/private \ --header 'X-DUNE-API-KEY: ' ``` @@ -29,14 +29,14 @@ url = "https://api.dune.com/api/v1/query/{queryId}/private" headers = {"X-DUNE-API-KEY": ""} -response = requests.request("GET", url, headers=headers) +response = requests.request("POST", url, headers=headers) print(response.text) ``` ```javascript JavaScript -const options = {method: 'GET', headers: {'X-DUNE-API-KEY': ''}}; +const options = {method: 'POST', headers: {'X-DUNE-API-KEY': ''}}; fetch('https://api.dune.com/api/v1/query/{queryId}/private', options) .then(response => response.json()) @@ -57,7 +57,7 @@ func main() { url := "https://api.dune.com/api/v1/query/{queryId}/private" - req, _ := http.NewRequest("GET", url, nil) + req, _ := http.NewRequest("POST", url, nil) req.Header.Add("X-DUNE-API-KEY", "") @@ -84,7 +84,7 @@ curl_setopt_array($curl, [ CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, - CURLOPT_CUSTOMREQUEST => "GET", + CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_HTTPHEADER => [ "X-DUNE-API-KEY: " ], @@ -103,9 +103,9 @@ if ($err) { ``` ```java Java -HttpResponse response = Unirest.get("https://api.dune.com/api/v1/query/{queryId}/private") +HttpResponse response = Unirest.post("https://api.dune.com/api/v1/query/{queryId}/private") .header("X-DUNE-API-KEY", "") .asString(); ``` - \ No newline at end of file + diff --git a/api-reference/crud/endpoint/unarchive.mdx b/api-reference/crud/endpoint/unarchive.mdx index 0ef8f0cb..bb29a784 100644 --- a/api-reference/crud/endpoint/unarchive.mdx +++ b/api-reference/crud/endpoint/unarchive.mdx @@ -10,7 +10,7 @@ In Dune context, delete action is replaced by archive as deletion of queries is ```bash cURL -curl --request GET \ +curl --request POST \ --url https://api.dune.com/api/v1/query/{queryId}/unarchive \ --header 'X-DUNE-API-KEY: ' ``` @@ -33,14 +33,14 @@ url = "https://api.dune.com/api/v1/query/{queryId}/unarchive" headers = {"X-DUNE-API-KEY": ""} -response = requests.request("GET", url, headers=headers) +response = requests.request("POST", url, headers=headers) print(response.text) ``` ```javascript JavaScript -const options = {method: 'GET', headers: {'X-DUNE-API-KEY': ''}}; +const options = {method: 'POST', headers: {'X-DUNE-API-KEY': ''}}; fetch('https://api.dune.com/api/v1/query/{queryId}/unarchive', options) .then(response => response.json()) @@ -61,7 +61,7 @@ func main() { url := "https://api.dune.com/api/v1/query/{queryId}/unarchive" - req, _ := http.NewRequest("GET", url, nil) + req, _ := http.NewRequest("POST", url, nil) req.Header.Add("X-DUNE-API-KEY", "") @@ -88,7 +88,7 @@ curl_setopt_array($curl, [ CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, - CURLOPT_CUSTOMREQUEST => "GET", + CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_HTTPHEADER => [ "X-DUNE-API-KEY: " ], @@ -107,9 +107,9 @@ if ($err) { ``` ```java Java -HttpResponse response = Unirest.get("https://api.dune.com/api/v1/query/{queryId}/unarchive") +HttpResponse response = Unirest.post("https://api.dune.com/api/v1/query/{queryId}/unarchive") .header("X-DUNE-API-KEY", "") .asString(); ``` - \ No newline at end of file + diff --git a/api-reference/crud/endpoint/unprivate.mdx b/api-reference/crud/endpoint/unprivate.mdx index 8af20006..a1acdd7e 100644 --- a/api-reference/crud/endpoint/unprivate.mdx +++ b/api-reference/crud/endpoint/unprivate.mdx @@ -6,7 +6,7 @@ openapi: 'POST /v1/query/{queryId}/unprivate' ```bash cURL -curl --request GET \ +curl --request POST \ --url https://api.dune.com/api/v1/query/{queryId}/unprivate \ --header 'X-DUNE-API-KEY: ' ``` @@ -29,14 +29,14 @@ url = "https://api.dune.com/api/v1/query/{queryId}/unprivate" headers = {"X-DUNE-API-KEY": ""} -response = requests.request("GET", url, headers=headers) +response = requests.request("POST", url, headers=headers) print(response.text) ``` ```javascript JavaScript -const options = {method: 'GET', headers: {'X-DUNE-API-KEY': ''}}; +const options = {method: 'POST', headers: {'X-DUNE-API-KEY': ''}}; fetch('https://api.dune.com/api/v1/query/{queryId}/unprivate', options) .then(response => response.json()) @@ -57,7 +57,7 @@ func main() { url := "https://api.dune.com/api/v1/query/{queryId}/unprivate" - req, _ := http.NewRequest("GET", url, nil) + req, _ := http.NewRequest("POST", url, nil) req.Header.Add("X-DUNE-API-KEY", "") @@ -84,7 +84,7 @@ curl_setopt_array($curl, [ CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, - CURLOPT_CUSTOMREQUEST => "GET", + CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_HTTPHEADER => [ "X-DUNE-API-KEY: " ], @@ -103,9 +103,9 @@ if ($err) { ``` ```java Java -HttpResponse response = Unirest.get("https://api.dune.com/api/v1/query/{queryId}/unprivate") +HttpResponse response = Unirest.post("https://api.dune.com/api/v1/query/{queryId}/unprivate") .header("X-DUNE-API-KEY", "") .asString(); ``` - \ No newline at end of file +