Skip to content

Reopen vendor risk acceptance

POST
/v1/vendors/{id}/acceptances/reopen
curl --request POST \
--url https://api.varman.io/v1/vendors/vnd_abc123def456/acceptances/reopen \
--header 'X-API-Key: <X-API-Key>'

Revokes the current residual-risk acceptance for a vendor by appending a reopen event to the history. Fails with 400 when there is no current acceptance.

id
required
string

Example

vnd_abc123def456

Vendor ID

Acceptance recorded successfully

Media typeapplication/json
object
id

Acceptance event ID

string
acceptedById

Member ID of the acceptor (null if since removed)

string
nullable
acceptedByName

Acceptor display name, frozen at acceptance

string
notes
string
nullable
residualLikelihood

Residual likelihood frozen at acceptance

string
Allowed values: very_unlikely unlikely possible likely very_likely
residualImpact

Residual impact frozen at acceptance

string
Allowed values: insignificant minor moderate major severe
level

Risk level of the accepted residual rating

string
Allowed values: very-low low medium high very-high
levelLabel

Human-readable level label

string
stale

True when the residual rating changed after this acceptance was recorded — re-acceptance is required

boolean
createdAt

When the acceptance was recorded (server-set, immutable)

string format: date-time
authType

How the request was authenticated

string
Allowed values: api-key session service
authenticatedUser

User information (only for session auth)

object
id
string
email
string

Example

{
"id": "rska_abc123def456",
"acceptedById": "mem_abc123def456",
"acceptedByName": "Jane Doe",
"notes": "Residual risk reviewed at the Q2 risk review.",
"residualLikelihood": "very_unlikely",
"residualImpact": "insignificant",
"level": "very-low",
"levelLabel": "Low",
"stale": false,
"authType": "api-key",
"authenticatedUser": {
"id": "usr_def456ghi789",
"email": "user@example.com"
}
}

No owner assigned, or the acceptor is not a valid member

Media typeapplication/json
object
message
string

Example

{
"message": "No owner is assigned. Assign an owner or choose an acceptor."
}

Unauthorized - Invalid authentication

Media typeapplication/json
object
message
string

Example

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

Forbidden - User does not have permission to access vendor risks

Media typeapplication/json
object
message
string

Example

{
"message": "Forbidden"
}

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"
}