v1

latestOpenAPI 3.0.32026-07-22238629559.2 KB
AutofixService

Create Autofix

This feature is currently in Public Beta.

Triggers an Autofix workflow for the given issue. The workflow runs asynchronously; it analyzes the issue, generates a fix, and opens a pull request in the underlying repository. Supports SAST, AI SAST, and SCA issue types — the issue's type is resolved server-side and dispatched to the corresponding Autofix path.

A success: true response means the Autofix job has been accepted for processing, not that a pull request has been opened. The PR is created by an asynchronous workflow that runs after this endpoint returns.

post/api/v1/deployments/{deploymentId}/issues/{issueId}/autofix

Path parameters

deploymentIdinteger required

The unique numerical identifier of the deployment. Can be found via the Deployments Service or in your Settings in the web UI.

Example:1234

Deployment ID

issueIdinteger required

The unique numerical identifier of the issue to generate a fix for.

Example:56789

Issue ID to fix

Request body

ProtosAiV1CreateAutofixRequest required

Request message for creating a unified Autofix job.

Response

OK

successboolean

Indicates whether the Autofix job was accepted for processing. Note: this does NOT mean a pull request has been opened — the PR is created by an asynchronous workflow that runs after this endpoint returns.

Example response

{
  "errors": [
    {
      "errorType": "AUTOFIX_ERROR_TYPE_NO_WRITE_ACCESS",
      "message": "Issue not found"
    }
  ],
  "success": true
}