Delete decision
curl --request DELETE \
--url https://{region}.api.plerion.com/v1/tenant/triage/decisions/{decisionId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://{region}.api.plerion.com/v1/tenant/triage/decisions/{decisionId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{region}.api.plerion.com/v1/tenant/triage/decisions/{decisionId}', 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://{region}.api.plerion.com/v1/tenant/triage/decisions/{decisionId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://{region}.api.plerion.com/v1/tenant/triage/decisions/{decisionId}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://{region}.api.plerion.com/v1/tenant/triage/decisions/{decisionId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{region}.api.plerion.com/v1/tenant/triage/decisions/{decisionId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "6c1f9a52-3d4e-4b8a-9f2e-7a0b1c2d3e4f"
}
}{
"errors": [
{
"code": "DecisionPartlyHidden",
"message": "This decision includes conditions outside your role, so you cannot change it. Ask someone whose role covers them."
}
]
}{
"errors": [
{
"code": "DecisionNotFound",
"message": "Triage decision not found"
}
]
}{
"errors": [
{
"code": "DecisionChanged",
"message": "Someone else changed this decision after you opened it. Reload it to see their change, then try again.",
"field": "<string>"
}
]
}{
"message": "Internal server error"
}{
"errors": [
{
"code": "DecisionNotDeleted",
"message": "This decision could not be deleted. Try again."
}
]
}Delete decision
Deletes a decision and its history, and ends its exemption. This cannot be undone.
Requires Finding:Triage or Vulnerability:Triage for the decision’s kind. If the key can access only some integrations, it can delete a decision only when the decision applies in no other integrations.
DELETE
/
v1
/
tenant
/
triage
/
decisions
/
{decisionId}
Delete decision
curl --request DELETE \
--url https://{region}.api.plerion.com/v1/tenant/triage/decisions/{decisionId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://{region}.api.plerion.com/v1/tenant/triage/decisions/{decisionId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{region}.api.plerion.com/v1/tenant/triage/decisions/{decisionId}', 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://{region}.api.plerion.com/v1/tenant/triage/decisions/{decisionId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://{region}.api.plerion.com/v1/tenant/triage/decisions/{decisionId}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://{region}.api.plerion.com/v1/tenant/triage/decisions/{decisionId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{region}.api.plerion.com/v1/tenant/triage/decisions/{decisionId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "6c1f9a52-3d4e-4b8a-9f2e-7a0b1c2d3e4f"
}
}{
"errors": [
{
"code": "DecisionPartlyHidden",
"message": "This decision includes conditions outside your role, so you cannot change it. Ask someone whose role covers them."
}
]
}{
"errors": [
{
"code": "DecisionNotFound",
"message": "Triage decision not found"
}
]
}{
"errors": [
{
"code": "DecisionChanged",
"message": "Someone else changed this decision after you opened it. Reload it to see their change, then try again.",
"field": "<string>"
}
]
}{
"message": "Internal server error"
}{
"errors": [
{
"code": "DecisionNotDeleted",
"message": "This decision could not be deleted. Try again."
}
]
}Authorizations
Path Parameters
Triage decision ID. Use List decisions to get the IDs.
Example:
"6c1f9a52-3d4e-4b8a-9f2e-7a0b1c2d3e4f"
Was this page helpful?