Remediate Code Scan Finding
Code Scans (Enterprise)
Remediate Code Scan Finding (Devin API)
Launch a Devin session to remediate a code scan finding
POST
Remediate Code Scan Finding
Permissions
Requires a service user or personal access token with theUseAccountCodeScans permission at the enterprise level.
Behavior
Launches a Devin session to remediate the specified code scan finding: the session analyzes the vulnerable code, implements a fix, and opens a pull request. The session is attributed to the calling principal (the service user or PAT that made the request). Returns409 Conflict if the finding already has a remediation session.
Related
- Triggering Code Scans via the Devin API covers the full start → poll → findings → remediate flow.
- Start Code Scan and Start Ingestion Scan create the scans whose findings can be remediated here.
- The organization-scoped equivalent is Remediate Code Scan Finding (Organization).
Authorizations
Service User credential (prefix: cog_)
Path Parameters
Organization ID (prefix: org-)
Example:
"org-abc123def456"

