---
title: "Add Vulnerabilities to Risk"
method: POST
path: "/api/risk/v2/risks/{riskId}/vulnerabilities"
tags: ["Risk Relationships"]
---

# Add Vulnerabilities to Risk

`POST /api/risk/v2/risks/{riskId}/vulnerabilities`

## Request

- Base URL: `https://hostname`
- URL: `https://hostname/api/risk/v2/risks/{riskId}/vulnerabilities`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://{hostname}/api/access/v1/oauth/token` scopes: `INTEGRATION`, `ITRM`

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.

## Path parameters

- `riskId` string, uuid, required

## Request body

- TechRiskComplianceRiskRiskVulnerabilityAddRequest
  - `vulnerabilityIdList` string[], required: List of unique identifiers of vulnerabilities to be added. If empty, all existing vulnerabilities will be removed from the risk.

## Response `201`

Vulnerabilities added or replaced successfully

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `429`: Too Many Requests. For more information, see [API Rate Limits](https://developer.onetrust.com/onetrust/reference/rate-limits-overview).
- `500`: Internal Server Error

---

[API](https://skmtc.dev/onetrust/apis/tech-risk-compliance-it-risk-management.md) - [All operations](https://skmtc.dev/onetrust/apis/tech-risk-compliance-it-risk-management/llms.txt) - [OpenAPI document](https://skmtc.dev/onetrust/apis/tech-risk-compliance-it-risk-management/revisions/d0bfd2a3c53e?raw)
