Start an AI fix for one defect group
Poll GET /v1/operations/{operationUuid} with the same gitRepo.
Request
POST
https://appsec.sourcecraft.tech/v1/ai/fix
Query parameters
|
Name |
Description |
|
gitRepo |
Type: string Repository identifier. Accepts either internal repository ID (e.g., 88769874964302633) or public UUID (e.g., 0199140f-4343-7c06-a7e3-b835c305b629). These values can be obtained from the getRepo API (fields: id and uuid). Pattern: Example: `` |
Body
application/json
{
"publicId": 42
}
|
Name |
Description |
|
publicId |
Type: integer Public number of the defect group in this repository Exclusive min: |
Responses
202 Accepted
Operation accepted
Body
application/json
{
"operationUuid": "example"
}
|
Name |
Description |
|
operationUuid |
Type: string Example: |
400 Bad Request
Missing or invalid repository identifier or request
401 Unauthorized
Missing or invalid authorization header
403 Forbidden
AppSec write permission denied
404 Not Found
Repository, organization or requested defect group not found
409 Conflict
Required neurocolleague or latest-scan findings missing
502 Bad Gateway
The fix agent could not start the job