AI fix: AI disabled for the repository
type | https://docs.frem.sh/reference/api/errors/autofix-repo-ai-disabled |
| HTTP status | 409 Conflict |
What it means
Returned by POST /orgs/{org}/code-security/sast/findings/{id}/autofix (AI fixes for SAST findings). No fix was requested and no AI model was called.
Since 2026-10-14 the same refusal is answered with the type ai-fix-repo-ai-disabled from POST /orgs/{org}/code-security/sast/findings/{id}/ai-fix. The paths above are deprecated and keep answering autofix-repo-ai-disabled until 2027-10-15. Branch on either type.
Example detail message returned with this error:
- AI fixes are turned off for this repository under AI integrations.
The response also carries "reason": "repo_ai_disabled".
What to do
Remove or change the per-repository override for the autofix feature under AI integrations.
Response shape
All fremforge API errors are RFC 9457 problem+json:
{
"type": "https://docs.frem.sh/reference/api/errors/autofix-repo-ai-disabled",
"title": "Conflict",
"status": 409,
"detail": "...",
"reason": "repo_ai_disabled"
}Branch on type, not on title or detail - those are human-readable and may be reworded.