---
title: "Unlink Risks"
method: POST
path: "/api/risk/v2/entities/risks/unlink"
tags: ["Risks"]
---

# Unlink Risks

`POST /api/risk/v2/entities/risks/unlink`

Use this API to disassociate one or more risks from a target entity.

> 🗒 Things to Know
>
> - This operation removes the association between the specified risks and the target entity.
> - The risks themselves are not deleted, only the linkage is removed.
> - Multiple risks can be unlinked in a single request.

## Request body

- TechRiskComplianceRiskRiskLinkRequest
  - `riskIds` string[], required — List of risk Ids that will be linked to or unlinked from the target entity. Must contain at least one valid risk ID
  - `riskSourceInformation` TechRiskComplianceRiskRiskSourceInformation, required
    - `id` string, uuid, required — Source Entity Id
    - `type` 'PIA' | 'GRA' | 'INVENTORY' | 'INCIDENT' | 'ENGAGEMENT' | 'GENERIC' — Source Type for the risk
    - `sourceType` TechRiskComplianceRiskEntityTypeInformation
      - `id` string, required — Entity Type ID. This can be Assets, Entities, PIA, Engagement, Custom Object GUID in form of String.
      - `label` string — Entity Type Name
      - `translationKey` string — Translation Key of Entity Type ID
      - `seeded` boolean — For Base Entity Type Seeded is true and false for Custom Object/Entity Types by default.
      - `sourceType` boolean — Indicates whether this type can be source type or not in Risk
      - `riskType` boolean — Indicates whether this type can be risk type or not in Risk
      - `eligibleForEntityLink` boolean — Indicates whether entity type is eligible for linking/relating with risk or not
      - `enabled` boolean — Indicates whether the entity type is enabled or not.
      - `moduleName` string — Name of the module
    - `name` string, required — Source Entity Name
    - `additionalAttributes` object — Additional information about the Source Entity. This will be a Map of String Key and Object value. 'inventoryType' key is mandatory to be passed when sourceType is 'Inventory', and it can have one of the following values, 20 - Assets, 30 - Processing Activities, 50 - Vendors, 60 - Entities
  - `origin` 'ASSESSMENT' | 'RISK' — origin of the risk

## Response `200`

Risks unlinked 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/versions/21de3aa0b170/schema)
