Create a dependency Autofix pull request

Remediate selected open findings in a single dependency file. Aikido chooses patch/minor versions and remediation strategy, including Aikido Libraries for breaking upstream fixes. PR settings follow normal workspace and repository configuration. Omitting cve_ids attempts all known open vulnerability findings for that package in this file, across affected installed versions. Invalid requests, unresolvable CVE selections and requests with no resolvable findings are rejected without creating a task. Use the task ID to poll GET /autofix/history/{autofix_task_id} and GET /autofix/history/{autofix_task_id}/issues to retrieve the issue IDs actually targeted. Requires an active, SCM-connected repository and Autofix write access.

Body Params
integer
required
≥ 1
string
required
length ≥ 1

Repository-relative lockfile or manifest path as exposed by affected_file in the issue API.

packages
array of objects
required
length between 1 and 50
packages*
string
required
length ≥ 1

Package name as exposed by affected_package in the issue API. Names must be unique within the request.

cve_ids
array of strings
length between 1 and 100

Vulnerability IDs as exposed by cve_id in the issue API, including CVE, AIKIDO and GHSA identifiers. Every supplied ID must match an open finding for this package in this file, and every matching finding must be resolvable. Omitting this field attempts all open findings best-effort; unresolvable findings are not targeted. This is not an upgrade to the latest version.

cve_ids
Responses

400

Invalid request, unmatched selection, unsupported file, inactive repository, or Autofix disabled.

403

Missing autofix:write scope or SCM write access.

404

Repository not found in your account.

409

A matching dependency Autofix task is already pending. Wait for it to complete before submitting the same fix again.

422

An explicit vulnerability selection could not be fully resolved, or no findings in the request could be resolved to a supported library or upstream fix.

Language
URL
LoadingLoading…
Response
Choose an example:
application/json