v1
latestOpenAPI 3.0.32026-07-22238629559.2 KBAiFixJobsService
Create Fix Job
This feature is currently in Public Beta.
Create an automated SAST fix job for the given issue. This triggers an AI-powered workflow that analyzes the vulnerability, generates a fix, and opens a pull request in the repository.
post/api/agent/deployments/{deploymentId}/issues/{issueId}/fix_jobs
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
ProtosAiV1CreateFixJobRequest required
Request message for creating a fix job
Response
OK
Example response
{
"errors": [
{
"errorType": "FIX_JOB_ERROR_TYPE_NO_WRITE_ACCESS",
"message": "Repository not found",
"githubAppInfo": {
"appId": 123456,
"appName": "semgrep-app",
"installationTarget": "my-org",
"configUrl": "https://github.com/organizations/my-org/settings/installations/123456"
}
}
],
"success": true
}