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

# Add Threat to Risk

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

Use this API to add or replace a threat on a risk.
> 🗒 Things to Know
> 
> - If a threat was previously assigned to the risk, that threat will be replaced with the new specified threat after calling this API.

## Path parameters

- `riskId` string, uuid, required

## Request body

- TechRiskComplianceRiskRiskThreatAddRequest
  - `threatId` string, uuid — Unique identifier of the threat to be added. If null, any existing threat will be removed from the risk.

## Response `201`

Threat 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.net/onetrust/apis/platform-access-management.md) · [All operations](https://skmtc.net/onetrust/apis/platform-access-management/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/onetrust/platform-access-management/revisions/21de3aa0b170/schema)
