Skip to content

Create organization risk

POST
/v1/risks
curl --request POST \
--url https://api.varman.io/v1/risks \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <X-API-Key>' \
--data '{ "title": "Data breach vulnerability in user authentication system", "description": "Weak password requirements could lead to unauthorized access to user accounts", "category": "customer", "department": "it", "status": "open", "likelihood": "very_unlikely", "impact": "insignificant", "residualLikelihood": "very_unlikely", "residualImpact": "insignificant", "treatmentStrategyDescription": "Implement multi-factor authentication and strengthen password requirements", "treatmentStrategy": "accept", "assigneeId": "mem_abc123def456" }'

Create a risk record with ownership and context so compliance teams can track mitigation and remediation work.

Risk creation data

Media typeapplication/json
object
title
required

Risk title

string

Example

Data breach vulnerability in user authentication system
description
required

Detailed description of the risk

string

Example

Weak password requirements could lead to unauthorized access to user accounts
category
required

Risk category

string
Allowed values: customer fraud governance operations other people regulatory reporting resilience technology vendor_management

Example

technology
department

Department responsible for the risk. Built-in values: none, admin, gov, hr, it, itsm, qms. Custom department names are also accepted.

string
<= 64 characters

Example

it
status
required

Current status of the risk

string
default: open
Allowed values: open pending closed archived

Example

open
likelihood
required

Likelihood of the risk occurring

string
default: very_unlikely
Allowed values: very_unlikely unlikely possible likely very_likely

Example

possible
impact
required

Impact if the risk materializes

string
default: insignificant
Allowed values: insignificant minor moderate major severe

Example

major
residualLikelihood
required

Residual likelihood after treatment

string
default: very_unlikely
Allowed values: very_unlikely unlikely possible likely very_likely

Example

unlikely
residualImpact
required

Residual impact after treatment

string
default: insignificant
Allowed values: insignificant minor moderate major severe

Example

minor
treatmentStrategyDescription

Description of the treatment strategy

string

Example

Implement multi-factor authentication and strengthen password requirements
treatmentStrategy
required

Risk treatment strategy

string
default: accept
Allowed values: accept avoid mitigate transfer

Example

mitigate
assigneeId

ID of the user assigned to this risk

string

Example

mem_abc123def456

Risk created successfully

Media typeapplication/json
object
id

Risk ID

string
title

Risk title

string
description

Risk description

string
category
string
Allowed values: customer governance operations other people regulatory reporting resilience technology vendor_management
department
string
nullable
Allowed values: none admin gov hr it itsm qms
status
string
Allowed values: open pending closed archived
likelihood
string
Allowed values: very_unlikely unlikely possible likely very_likely
impact
string
Allowed values: insignificant minor moderate major severe
residualLikelihood
string
Allowed values: very_unlikely unlikely possible likely very_likely
residualImpact
string
Allowed values: insignificant minor moderate major severe
treatmentStrategyDescription
string
nullable
treatmentStrategy
string
Allowed values: accept avoid mitigate transfer
organizationId
string
assigneeId

ID of the user assigned to this risk

string
nullable
createdAt

When the risk was created

string format: date-time
updatedAt

When the risk 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": "rsk_abc123def456",
"title": "Data breach vulnerability in user authentication system",
"description": "Weak password requirements could lead to unauthorized access to user accounts",
"category": "customer",
"department": "none",
"status": "open",
"likelihood": "very_unlikely",
"impact": "insignificant",
"residualLikelihood": "very_unlikely",
"residualImpact": "insignificant",
"treatmentStrategyDescription": "Implement multi-factor authentication and strengthen password requirements",
"treatmentStrategy": "accept",
"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": [
"title should not be empty",
"description should not be empty",
"category must be a valid enum value"
],
"error": "Bad Request",
"statusCode": 400
}

Unauthorized - Invalid authentication or insufficient permissions

Media typeapplication/json
object
message
string

Example

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

Organization not found

Media typeapplication/json
object
message
string

Example

{
"message": "Organization with ID org_abc123def456 not found"
}

Internal server error

Media typeapplication/json
object
message
string

Example

{
"message": "Internal server error"
}