Skip to content

Update vendor record

PATCH
/v1/vendors/{id}
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.

id
required
string

Example

vnd_abc123def456

Vendor ID

Vendor update data

Media typeapplication/json
object
name

Vendor name

string
description

Vendor description

string
category

Vendor category

string
Allowed values: cloud infrastructure software_as_a_service finance marketing sales hr other
status

Assessment status

string
Allowed values: not_assessed in_progress assessed
inherentProbability

Inherent probability

string
Allowed values: very_unlikely unlikely possible likely very_likely
inherentImpact

Inherent impact

string
Allowed values: insignificant minor moderate major severe
residualProbability

Residual probability

string
Allowed values: very_unlikely unlikely possible likely very_likely
residualImpact

Residual impact

string
Allowed values: insignificant minor moderate major severe
treatmentStrategy

Risk treatment strategy

string
default: accept
Allowed values: accept avoid mitigate transfer

Example

mitigate
treatmentStrategyDescription

Description of the treatment strategy

object

Example

We isolated the vendor to a dedicated VPC.
website

Vendor website URL

string
isSubProcessor

Whether the vendor is a sub-processor

boolean
assigneeId

Assignee member ID

string
confidentiality

Confidentiality classification

string
Allowed values: low medium high
integrity

Integrity classification

string
Allowed values: low medium high
availability

Availability classification

string
Allowed values: low medium high

Vendor updated successfully

Media typeapplication/json
object
id

Vendor ID

string
name

Vendor name

string
description

Vendor description

string
category
string
Allowed values: cloud infrastructure software_as_a_service finance marketing sales hr other
status
string
Allowed values: not_assessed in_progress assessed
inherentProbability
string
Allowed values: very_unlikely unlikely possible likely very_likely
inherentImpact
string
Allowed values: insignificant minor moderate major severe
residualProbability
string
Allowed values: very_unlikely unlikely possible likely very_likely
residualImpact
string
Allowed values: insignificant minor moderate major severe
website
string
nullable
organizationId
string
assigneeId

ID of the user assigned to manage this vendor

string
nullable
createdAt

When the vendor was created

string format: date-time
updatedAt

When the vendor was last updated

string format: date-time
authType

How the request was authenticated

string
Allowed values: api-key session
authenticatedUser

User information (only for session auth)

object
id
string
email
string

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

Media typeapplication/json
object
message
Array<string>
error
string
statusCode
number

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

Media typeapplication/json
object
message
string

Example

{
"message": "Invalid or expired API key"
}

Vendor not found

Media typeapplication/json
object
message
string

Example

{
"message": "Vendor with ID vnd_abc123def456 not found in organization org_abc123def456"
}

Internal server error

Media typeapplication/json
object
message
string

Example

{
"message": "Internal server error"
}