Generate a new patch (optionally with feedback for revision).
POST/v1/scans/:scan_id/findings/:finding_id/patches
The scan must have on-disk source (i.e. recent enough that clones haven't been freed). If the source is gone the call returns 400 — re-clone or re-upload first.
Request
Responses
- 201
- 400
- 403
- 404
- 502
Generated patch (with full unified-diff body).
Malformed request — missing or invalid fields.
Authenticated, but not allowed (tier / role / ownership).
Resource not found or not visible to the caller.
Patch generation failed in the agent loop.