---
title: "Update Threats"
method: PUT
path: "/api/controls/v2/threats"
tags: ["Threats"]
---

# Update Threats

`PUT /api/controls/v2/threats`

## Request

- Base URL: `https://hostname`
- URL: `https://hostname/api/controls/v2/threats`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://{hostname}/api/access/v1/oauth/token` scopes: `ITRM`

Use this API to update the attributes of threats in the Threat Library.

> 🗒 Things to Know
>
> - The [Get List of Threats](https://developer.onetrust.com/onetrust/reference/findthreatsbycriteriausingpost) API can be used to retrieve a list of all existing threats.

## Request body

- TechRiskComplianceITRiskManagementThreatUpdateRequest[]: Put request containing a list of threats and attributes to be updated within the threats library.
  - `orgGroupId` string, uuid, required: Organization Group Identifier of Threat.
  - `identifier` string, required: String Identifier of Threat.
  - `name` string, required: Threat Name.
  - `description` string: Description of the Threat.
  - `framework` TechRiskComplianceITRiskManagementFrameworkInformation
    - `id` string, uuid: Primary Identifier.
    - `name` string: Framework Name of Control.
    - `nameKey` string: Framework Name key for Translation.
  - `category` TechRiskComplianceITRiskManagementCategoryInformation
    - `id` string, uuid: Category unique identifier
    - `name` string: Category name
    - `nameKey` string: Category nameKey for localization support
  - `status` 'Active' | 'Pending' | 'Archived': Threat Status.
  - `id` string, uuid, required: Unique system identifier (UUID) of the threat to update.
  - `attributes` object: Custom attributes associated with this threat, organized as a map of attribute names to their values.

## Response `200`

OK

- TechRiskComplianceITRiskManagementThreatDto[]
  - `id` string, uuid, required: Primary Identifier of Threat.
  - `identifier` string, required: String Identifier of Threat.
  - `name` string, required: Threat Name.
  - `description` string: Threat Description.
  - `framework` TechRiskComplianceITRiskManagementFrameworkInformation
    - `id` string, uuid: Primary Identifier.
    - `name` string: Framework Name of Control.
    - `nameKey` string: Framework Name key for Translation.
  - `category` TechRiskComplianceITRiskManagementCategoryInformation
    - `id` string, uuid: Category unique identifier
    - `name` string: Category name
    - `nameKey` string: Category nameKey for localization support
  - `orgGroup` TechRiskComplianceITRiskManagementOrganizationInformation, required
    - `id` string, uuid: Primary Identifier.
    - `name` string: Organization Name.
  - `status` 'Active' | 'Pending' | 'Archived': Threat Status.
  - `attributes` object: Custom attributes associated with this threat, organized as a map of attribute names to their values.
  - `displayLabel` string

## 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)
