v1

latestOpenAPI 3.1.0Apache 2.02026-07-245981,1853.0 MB
Risk Relationships

Add Vulnerabilities to Risk

Use this API to add or replace vulnerabilities on a risk.

🗒 Things to Know

  • If vulnerabilities were previously assigned to the risk, those vulnerabilities will be replaced with the new specified vulnerabilities after calling this API.
post/api/risk/v2/risks/{riskId}/vulnerabilities

Path parameters

riskIdstring uuid required

Unique identifier of the risk

Request body

vulnerabilityIdListstring[] required

List of unique identifiers of vulnerabilities to be added. If empty, all existing vulnerabilities will be removed from the risk.

Example request

{
  "vulnerabilityIdList": [
    "123e4567-e89b-12d3-a456-426614174000",
    "987fcdeb-51a2-43d7-9abc-123456789012"
  ]
}

Response

Vulnerabilities added or replaced successfully