Skip to content

Delete organization risk

DELETE
/v1/risks/{id}
curl --request DELETE \
--url https://api.varman.io/v1/risks/rsk_abc123def456 \
--header 'X-API-Key: <X-API-Key>'

Delete an organization risk that no longer needs active tracking in the risk register or compliance program.

id
required
string

Example

rsk_abc123def456

Risk ID

Risk deleted successfully

Media typeapplication/json
object
message
string
deletedRisk
object
id

Deleted risk ID

string
title

Deleted risk title

string
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

{
"message": "Risk deleted successfully",
"deletedRisk": {
"id": "rsk_abc123def456",
"title": "Data breach vulnerability in user authentication system"
},
"authType": "api-key",
"authenticatedUser": {
"id": "usr_def456ghi789",
"email": "user@example.com"
}
}

Unauthorized - Invalid authentication or insufficient permissions

Media typeapplication/json
object
message
string

Example

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

Risk not found

Media typeapplication/json
object
message
string

Example

{
"message": "Risk with ID rsk_abc123def456 not found in organization org_abc123def456"
}

Internal server error

Media typeapplication/json
object
message
string

Example

{
"message": "Internal server error"
}