update_claim_status
curl --request POST \
--url https://dev.api.slingshotml.com/v2/update_claim_status \
--header 'Content-Type: application/json' \
--header 'SLINGSHOT_KEY: <api-key>' \
--data '
{
"claim_id": "e4eaaaf2-d142-11e1-b3e4-080027620cdd",
"status": "Denied"
}
'import requests
url = "https://dev.api.slingshotml.com/v2/update_claim_status"
payload = {
"claim_id": "e4eaaaf2-d142-11e1-b3e4-080027620cdd",
"status": "Denied"
}
headers = {
"SLINGSHOT_KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {SLINGSHOT_KEY: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({claim_id: 'e4eaaaf2-d142-11e1-b3e4-080027620cdd', status: 'Denied'})
};
fetch('https://dev.api.slingshotml.com/v2/update_claim_status', 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://dev.api.slingshotml.com/v2/update_claim_status",
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([
'claim_id' => 'e4eaaaf2-d142-11e1-b3e4-080027620cdd',
'status' => 'Denied'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"SLINGSHOT_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://dev.api.slingshotml.com/v2/update_claim_status"
payload := strings.NewReader("{\n \"claim_id\": \"e4eaaaf2-d142-11e1-b3e4-080027620cdd\",\n \"status\": \"Denied\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("SLINGSHOT_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://dev.api.slingshotml.com/v2/update_claim_status")
.header("SLINGSHOT_KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"claim_id\": \"e4eaaaf2-d142-11e1-b3e4-080027620cdd\",\n \"status\": \"Denied\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.api.slingshotml.com/v2/update_claim_status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["SLINGSHOT_KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"claim_id\": \"e4eaaaf2-d142-11e1-b3e4-080027620cdd\",\n \"status\": \"Denied\"\n}"
response = http.request(request)
puts response.read_bodyThis response has no body data.This response has no body data.This response has no body data.This response has no body data.This response has no body data.This response has no body data.This response has no body data.API Reference
Update Claim
Updates the Status of an Analyzed Claim: This endpoint facilitates updating the status of a previously reviewed claim. While its usage is optional, employing this endpoint enhances claim management efficiency and contributes to performance optimization. Utilizing this feature provides access to valuable metrics, including model drift, precision, and granularity, aiding in the continuous improvement of claim validation.
POST
/
update_claim_status
update_claim_status
curl --request POST \
--url https://dev.api.slingshotml.com/v2/update_claim_status \
--header 'Content-Type: application/json' \
--header 'SLINGSHOT_KEY: <api-key>' \
--data '
{
"claim_id": "e4eaaaf2-d142-11e1-b3e4-080027620cdd",
"status": "Denied"
}
'import requests
url = "https://dev.api.slingshotml.com/v2/update_claim_status"
payload = {
"claim_id": "e4eaaaf2-d142-11e1-b3e4-080027620cdd",
"status": "Denied"
}
headers = {
"SLINGSHOT_KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {SLINGSHOT_KEY: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({claim_id: 'e4eaaaf2-d142-11e1-b3e4-080027620cdd', status: 'Denied'})
};
fetch('https://dev.api.slingshotml.com/v2/update_claim_status', 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://dev.api.slingshotml.com/v2/update_claim_status",
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([
'claim_id' => 'e4eaaaf2-d142-11e1-b3e4-080027620cdd',
'status' => 'Denied'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"SLINGSHOT_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://dev.api.slingshotml.com/v2/update_claim_status"
payload := strings.NewReader("{\n \"claim_id\": \"e4eaaaf2-d142-11e1-b3e4-080027620cdd\",\n \"status\": \"Denied\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("SLINGSHOT_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://dev.api.slingshotml.com/v2/update_claim_status")
.header("SLINGSHOT_KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"claim_id\": \"e4eaaaf2-d142-11e1-b3e4-080027620cdd\",\n \"status\": \"Denied\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.api.slingshotml.com/v2/update_claim_status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["SLINGSHOT_KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"claim_id\": \"e4eaaaf2-d142-11e1-b3e4-080027620cdd\",\n \"status\": \"Denied\"\n}"
response = http.request(request)
puts response.read_bodyThis response has no body data.This response has no body data.This response has no body data.This response has no body data.This response has no body data.This response has no body data.This response has no body data.⌘I

