---
title: "POST /api/risk-analysis/mitigations"
method: POST
path: "/api/risk-analysis/mitigations"
tags: ["Risk Analysis"]
---

# POST /api/risk-analysis/mitigations

`POST /api/risk-analysis/mitigations`

Adds a manual mitigation to an assessment risk/metric pair.

## Request body

- object
  - `assessmentId` string, required
  - `riskId` string, required
  - `metricId` string, required
  - `forCompanyId` string, required
  - `offset` number, required
  - `remark` string, required

## Response `201`

Default Response

- object
  - `metadata` object, required
    - `success` boolean, required — True when the request succeeded.
  - `data` object, required
    - `mitigationId` string, required
    - `blueprintId` string, nullable, required
    - `forCompanyId` string, nullable, required
    - `metricId` string, nullable, required
    - `ruleDatapointId` string, nullable
    - `ruleDatapointVersion` string, nullable
    - `mitigationType` string, nullable, required
    - `value` number, nullable, required
    - `valueType` string, nullable, required
    - `remark` string, nullable, required
    - `createdByUserId` string, nullable, required
    - `createdAt` string, nullable, required
    - `meta` object, nullable

## Changes

> 22 revisions in range; 1 not diffed.

- **2026-08-31** `97e51f27dc77` — 12 breaking, 12 info
  - the response property `data/blueprintId` became nullable for the status `201`
  - the response property `data/createdAt` became nullable for the status `201`
  - the response property `data/createdByUserId` became nullable for the status `201`
  - the response property `data/forCompanyId` became nullable for the status `201`
  - …20 more

[Change history](https://skmtc.dev/retraced/apis/api-reference/changes/api/risk-analysis/mitigations/post.md)

---

[API](https://skmtc.dev/retraced/apis/api-reference.md) · [All operations](https://skmtc.dev/retraced/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/retraced/api-reference/revisions/97e51f27dc77/schema)
