Delete classification
curl --request DELETE \
--url https://{subdomain}.qanapi.cloud/api/v3/classifications/{classification} \
--header 'x-qanapi-authorization: <api-key>'import requests
url = "https://{subdomain}.qanapi.cloud/api/v3/classifications/{classification}"
headers = {"x-qanapi-authorization": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'x-qanapi-authorization': '<api-key>'}};
fetch('https://{subdomain}.qanapi.cloud/api/v3/classifications/{classification}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{subdomain}.qanapi.cloud/api/v3/classifications/{classification}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-qanapi-authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{subdomain}.qanapi.cloud/api/v3/classifications/{classification}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-qanapi-authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://{subdomain}.qanapi.cloud/api/v3/classifications/{classification}")
.header("x-qanapi-authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.qanapi.cloud/api/v3/classifications/{classification}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-qanapi-authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"message": "Bad request."
}{
"message": "Unauthorized."
}{
"message": "User does not have the right permissions."
}{
"message": "Resource not found."
}Classifications
Delete classification
DELETE
/
v3
/
classifications
/
{classification}
Delete classification
curl --request DELETE \
--url https://{subdomain}.qanapi.cloud/api/v3/classifications/{classification} \
--header 'x-qanapi-authorization: <api-key>'import requests
url = "https://{subdomain}.qanapi.cloud/api/v3/classifications/{classification}"
headers = {"x-qanapi-authorization": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'x-qanapi-authorization': '<api-key>'}};
fetch('https://{subdomain}.qanapi.cloud/api/v3/classifications/{classification}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{subdomain}.qanapi.cloud/api/v3/classifications/{classification}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-qanapi-authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{subdomain}.qanapi.cloud/api/v3/classifications/{classification}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-qanapi-authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://{subdomain}.qanapi.cloud/api/v3/classifications/{classification}")
.header("x-qanapi-authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{subdomain}.qanapi.cloud/api/v3/classifications/{classification}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-qanapi-authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"message": "Bad request."
}{
"message": "Unauthorized."
}{
"message": "User does not have the right permissions."
}{
"message": "Resource not found."
}⌘I