Update vendor record
const url = 'https://api.varman.io/v1/vendors/vnd_abc123def456';const options = { method: 'PATCH', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"name":"example","description":"example","category":"cloud","status":"not_assessed","inherentProbability":"very_unlikely","inherentImpact":"insignificant","residualProbability":"very_unlikely","residualImpact":"insignificant","treatmentStrategy":"accept","treatmentStrategyDescription":"We isolated the vendor to a dedicated VPC.","website":"example","isSubProcessor":true,"assigneeId":"example","confidentiality":"low","integrity":"low","availability":"low"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.varman.io/v1/vendors/vnd_abc123def456 \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "name": "example", "description": "example", "category": "cloud", "status": "not_assessed", "inherentProbability": "very_unlikely", "inherentImpact": "insignificant", "residualProbability": "very_unlikely", "residualImpact": "insignificant", "treatmentStrategy": "accept", "treatmentStrategyDescription": "We isolated the vendor to a dedicated VPC.", "website": "example", "isSubProcessor": true, "assigneeId": "example", "confidentiality": "low", "integrity": "low", "availability": "low" }'Update vendor ownership, risk attributes, review metadata, and third-party compliance context for an organization.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
vnd_abc123def456Vendor ID
Request Bodyrequired
Section titled “Request Bodyrequired”Vendor update data
object
Vendor name
Vendor description
Vendor category
Assessment status
Inherent probability
Inherent impact
Residual probability
Residual impact
Risk treatment strategy
Example
mitigateDescription of the treatment strategy
object
Example
We isolated the vendor to a dedicated VPC.Vendor website URL
Whether the vendor is a sub-processor
Assignee member ID
Confidentiality classification
Integrity classification
Availability classification
Responses
Section titled “Responses”Vendor updated successfully
object
Vendor ID
Vendor name
Vendor description
ID of the user assigned to manage this vendor
When the vendor was created
When the vendor was last updated
How the request was authenticated
User information (only for session auth)
object
Example
{ "id": "vnd_abc123def456", "name": "CloudTech Solutions Inc.", "description": "Cloud infrastructure provider offering AWS-like services including compute, storage, and networking solutions for enterprise customers.", "category": "cloud", "status": "not_assessed", "inherentProbability": "very_unlikely", "inherentImpact": "insignificant", "residualProbability": "very_unlikely", "residualImpact": "insignificant", "website": "https://www.cloudtechsolutions.com", "organizationId": "org_abc123def456", "assigneeId": "mem_abc123def456", "authType": "api-key", "authenticatedUser": { "id": "usr_def456ghi789", "email": "user@example.com" }}Bad request - Invalid input data
object
Example
{ "message": [ "name should not be empty", "category must be a valid enum value", "status must be a valid enum value", "website must be a URL address" ], "error": "Bad Request", "statusCode": 400}Unauthorized - Invalid authentication or insufficient permissions
object
Example
{ "message": "Invalid or expired API key"}Vendor not found
object
Example
{ "message": "Vendor with ID vnd_abc123def456 not found in organization org_abc123def456"}Internal server error
object
Example
{ "message": "Internal server error"}