Findings
Dismiss a finding
Removes the finding from the list. Both reason and note are required.
A dismissed finding can reopen if monitoring detects the problem again, and it
stays readable through GET /findings/{finding_id}.
POST
/
findings
/
{finding_id}
/
dismiss
Dismiss a finding
curl --request POST \
--url https://api.kapso.ai/platform/v1/findings/{finding_id}/dismiss \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"reason": "already_fixed",
"note": "The workflow was corrected in release 2.4."
}
'import requests
url = "https://api.kapso.ai/platform/v1/findings/{finding_id}/dismiss"
payload = {
"reason": "already_fixed",
"note": "The workflow was corrected in release 2.4."
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: 'already_fixed', note: 'The workflow was corrected in release 2.4.'})
};
fetch('https://api.kapso.ai/platform/v1/findings/{finding_id}/dismiss', 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://api.kapso.ai/platform/v1/findings/{finding_id}/dismiss",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'reason' => 'already_fixed',
'note' => 'The workflow was corrected in release 2.4.'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.kapso.ai/platform/v1/findings/{finding_id}/dismiss"
payload := strings.NewReader("{\n \"reason\": \"already_fixed\",\n \"note\": \"The workflow was corrected in release 2.4.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.kapso.ai/platform/v1/findings/{finding_id}/dismiss")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"reason\": \"already_fixed\",\n \"note\": \"The workflow was corrected in release 2.4.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kapso.ai/platform/v1/findings/{finding_id}/dismiss")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"reason\": \"already_fixed\",\n \"note\": \"The workflow was corrected in release 2.4.\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"finding_id": "8f14e45f-ceea-467a-9e1a-1b2c3d4e5f60",
"verification_id": "6f708192-0314-42d5-b6e7-f8091a2b3c4d",
"status": "dismissed"
}
}{
"error": "<string>"
}{
"error": "Finding not found in this project.",
"code": "finding_not_found"
}{
"error": "param is missing or the value is empty: note"
}Authorizations
Path Parameters
Body
application/json
Response
Finding dismissed
Show child attributes
Show child attributes
Was this page helpful?
⌘I
Dismiss a finding
curl --request POST \
--url https://api.kapso.ai/platform/v1/findings/{finding_id}/dismiss \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"reason": "already_fixed",
"note": "The workflow was corrected in release 2.4."
}
'import requests
url = "https://api.kapso.ai/platform/v1/findings/{finding_id}/dismiss"
payload = {
"reason": "already_fixed",
"note": "The workflow was corrected in release 2.4."
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: 'already_fixed', note: 'The workflow was corrected in release 2.4.'})
};
fetch('https://api.kapso.ai/platform/v1/findings/{finding_id}/dismiss', 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://api.kapso.ai/platform/v1/findings/{finding_id}/dismiss",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'reason' => 'already_fixed',
'note' => 'The workflow was corrected in release 2.4.'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.kapso.ai/platform/v1/findings/{finding_id}/dismiss"
payload := strings.NewReader("{\n \"reason\": \"already_fixed\",\n \"note\": \"The workflow was corrected in release 2.4.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.kapso.ai/platform/v1/findings/{finding_id}/dismiss")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"reason\": \"already_fixed\",\n \"note\": \"The workflow was corrected in release 2.4.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kapso.ai/platform/v1/findings/{finding_id}/dismiss")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"reason\": \"already_fixed\",\n \"note\": \"The workflow was corrected in release 2.4.\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"finding_id": "8f14e45f-ceea-467a-9e1a-1b2c3d4e5f60",
"verification_id": "6f708192-0314-42d5-b6e7-f8091a2b3c4d",
"status": "dismissed"
}
}{
"error": "<string>"
}{
"error": "Finding not found in this project.",
"code": "finding_not_found"
}{
"error": "param is missing or the value is empty: note"
}
