Skip to main content
PATCH
/
vendors
/
{vendorId}
/
findings
/
{findingId}
Update vendor finding
curl --request PATCH \
  --url https://api.vanta.com/v1/vendors/{vendorId}/findings/{findingId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "content": "<string>",
  "remediation": {
    "requirementNotes": "<string>"
  }
}
'
import requests

url = "https://api.vanta.com/v1/vendors/{vendorId}/findings/{findingId}"

payload = {
"content": "<string>",
"remediation": { "requirementNotes": "<string>" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({content: '<string>', remediation: {requirementNotes: '<string>'}})
};

fetch('https://api.vanta.com/v1/vendors/{vendorId}/findings/{findingId}', 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.vanta.com/v1/vendors/{vendorId}/findings/{findingId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'content' => '<string>',
'remediation' => [
'requirementNotes' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);

$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.vanta.com/v1/vendors/{vendorId}/findings/{findingId}"

payload := strings.NewReader("{\n \"content\": \"<string>\",\n \"remediation\": {\n \"requirementNotes\": \"<string>\"\n }\n}")

req, _ := http.NewRequest("PATCH", url, payload)

req.Header.Add("Authorization", "Bearer <token>")
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.patch("https://api.vanta.com/v1/vendors/{vendorId}/findings/{findingId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"content\": \"<string>\",\n \"remediation\": {\n \"requirementNotes\": \"<string>\"\n }\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.vanta.com/v1/vendors/{vendorId}/findings/{findingId}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"content\": \"<string>\",\n \"remediation\": {\n \"requirementNotes\": \"<string>\"\n }\n}"

response = http.request(request)
puts response.read_body
{
  "id": "66bb83e06c54dc42afedb174",
  "vendorId": "66bb83dc14f5709efe418859",
  "securityReviewId": "66bb83977ffe63d2c54d6711",
  "documentId": null,
  "content": "This vendor has not performed a penetration test in the past 15 months.",
  "riskStatus": "REMEDIATE",
  "remediation": {
    "requirementNotes": "We need them to provide an updated penetration test report.",
    "state": "OPEN"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

vendorId
string
required
findingId
string
required

Body

application/json
content
string

The content of the finding.

riskStatus
enum<string>

The risk status of the finding.

Available options:
ACCEPT,
REMEDIATE,
NONE
remediation
object

Remediation information about the finding. Will only be populated if riskStatus is set to "REMEDIATE".

Response

200 - application/json

Ok

id
string
required

Unique identifier for the finding.

vendorId
string
required

Unique identifier for the vendor.

securityReviewId
string | null
required

Unique identifier for a security review.

documentId
string | null
required

Unique identifier for a document.

content
string
required

The content of the finding.

riskStatus
enum<string>
required

The risk status of the finding.

Available options:
ACCEPT,
REMEDIATE,
NONE
remediation
object | null
required

Remediation information about the finding. Will only be populated if riskStatus is set to "REMEDIATE".