AiFixJobsService
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
Request
- The document declares no server URL.
- Auth
- HTTP bearer
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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
Protos Ai V1 Create Fix Job Request 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
}Changes
No recorded changes to this operation across all 1 revision of this API.