Findings - Detail Remediation
AI-assisted remediation, pull requests and issues for a finding.
📄️ Generate Issue
Run the issue-generation workflow for the finding identified by finding_id and return the workflow result. Requires the generate-issue scope; responds 422 when the finding ID is missing.
📄️ Generate AI Remediation
Request asynchronous AI remediation generation for a single finding. The request is accepted with 202 and a remediation is created in the background if one does not already exist for the finding.
📄️ Get Remediation
Return the most recent remediation generated for the finding given by the finding_id query parameter. Responds 404 when no remediation exists and 422 when the finding ID is missing; access to the finding is checked before returning data.
📄️ Edit Remediation
Update editable fields of a remediation: diff, code_diff, and status. Any other field in the payload is rejected with 403 to prevent mass-assignment of server-managed data.
📄️ Create Pull Request
Execute the PullRequest workflow that opens a pull request on the connected SCM for the remediation referenced in the request body.
📄️ Create Issue on SCM
Trigger the CreateIssue workflow to open an issue on the connected SCM provider (GitHub, GitLab, Bitbucket or Gitea) for a finding remediation. Requires a Bearer token with the create-issue scope.