---
title: "POST /StartCodeRemediation"
method: POST
path: "/StartCodeRemediation"
---

# POST /StartCodeRemediation

`POST /StartCodeRemediation`

Initiates code remediation for one or more security findings. This creates pull requests in integrated repositories to fix the identified vulnerabilities.

## Request body

- object
  - `agentSpaceId` string, required — The unique identifier of the agent space.
  - `pentestJobId` string — The unique identifier of the pentest job that produced the findings. Mutually exclusive with <code>codeReviewJobId</code>.
  - `codeReviewJobId` string — The unique identifier of the code review job that produced the findings. Mutually exclusive with <code>pentestJobId</code>.
  - `findingIds` String[], required — The list of finding identifiers to initiate code remediation for.

## Response `200`

Success

- StartCodeRemediationOutput — Output for the StartCodeRemediation operation.

---

[API](https://skmtc.net/aws/apis/securityagent.md) · [All operations](https://skmtc.net/aws/apis/securityagent/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/securityagent/versions/cad56717d636/schema)
