Queue one remediation pull request for run findings

POST/v1/security/runs/{runId}/remediations

Creates one durable remediation batch for the selected eligible findings, or every eligible finding in the run when findingIds is omitted. The worker must create exactly one draft pull request.

How to call this endpoint

Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.

Path, query, and header parameters

These parameters control which ACP object the endpoint acts on and how the request is processed.

Path parameters
NameLocationTypeRequiredDescription
runIdpathstringYesSecurity run ID
Query parameters
None.
Header parameters
NameLocationTypeRequiredDescription
X-Computer-Agents-OrganizationheaderstringNoActive organization context. If omitted, the authenticated user's personal organization is used.
Idempotency-KeyheaderstringNo

Body schema

Content type: application/json · Optional

FieldTypeRequiredDescription
findingIdsstring[]No

What the API returns

Each response code below includes the documented payload shape for the ACP API.

202Remediation batch queuedapplication/json
FieldTypeRequiredDescription
idstringYesUnique identifier.
repositoryIdstringYes
findingIdstringNo
findingIdsstring[]Yes
runIdstringNo
statusproposed | validating | waiting_approval | approved | published | rejected | failed | cancelledYesCurrent lifecycle status.
lifecyclequeued | generating | agent_running | pull_request_open | pull_request_closed | merged | verifying | fixed | deployed | verification_failed | failed | cancelledYes
patchDigeststringYes
validationobjectYes
approvedByUserIdstringNo
approvedAtstringNo
branchNamestringNo
pullRequestIdstringNo
pullRequestUrlstringNo
workerThreadIdstringNo
sourceShastringNo
metadataobjectYesFree-form metadata object.
createdAtstringYesISO 8601 timestamp.
updatedAtstringYesISO 8601 timestamp.
402Insufficient budgetapplication/json
FieldTypeRequiredDescription
errorstringNo
messagestringNoMessage text.
currentBudgetnumberNo
404Resource not foundapplication/json
FieldTypeRequiredDescription
errorstringNo
409The run or selected findings cannot be remediated
None.
Queue one remediation pull request for run findings
Loading...
Response 202
Loading...
See the ACP quickstart and SDK flow