---
title: "Get migration safety issues"
method: POST
path: "/api/v2/projects/{projectKey}/flags/{flagKey}/environments/{environmentKey}/migration-safety-issues"
tags: ["Feature flags"]
---

# Get migration safety issues

`POST /api/v2/projects/{projectKey}/flags/{flagKey}/environments/{environmentKey}/migration-safety-issues`

Returns the migration safety issues that are associated with the POSTed flag patch. The patch must use the semantic patch format for updating feature flags.

## Path parameters

- `projectKey` string, string, required — The project key
- `flagKey` string, string, required — The migration flag key
- `environmentKey` string, string, required — The environment key

## Request body

- FlagSempatch
  - `instructions` Instruction[], required
  - `comment` string

## Response `200`

Migration safety issues found

- MigrationSafetyIssueRep[]
  - `causingRuleId` string — The ID of the rule which caused this issue
  - `affectedRuleIds` string[] — A list of the IDs of the rules which are affected by this issue. <code>fallthrough</code> is a sentinel value for the default rule.
  - `issue` string — A description of the issue that <code>causingRuleId</code> has caused for <code>affectedRuleIds</code>.
  - `oldSystemAffected` boolean — Whether the changes caused by <code>causingRuleId</code> bring inconsistency to the old system

## Other responses

- `204` — No safety issues found
- `400` — Invalid request
- `401` — Invalid access token
- `403` — Forbidden
- `404` — Invalid resource identifier
- `429` — Rate limited
- `503` — Service unavailable

---

[API](https://skmtc.dev/launchdarkly/apis/launchdarkly-rest-api.md) · [All operations](https://skmtc.dev/launchdarkly/apis/launchdarkly-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/launchdarkly/launchdarkly-rest-api/revisions/69c5c9aafe78/schema)
