Start Seer Issue Fix
POST /api/0/organizations/{organization_id_or_slug}/issues/{issue_id}/autofix/
Trigger a Seer Issue Fix run for a specific issue.
The issue fix process can:
- Identify the root cause of the issue
- Propose a solution
- Generate code changes
- Create a pull request with the fix
The process runs asynchronously, and you can get the state using the GET endpoint.
Path Parameters
organization_id_or_slug
(string)REQUIREDThe ID or slug of the organization the resource belongs to.
issue_id
(integer)REQUIREDThe ID of the issue you'd like to query.
Body Parameters
event_id
(string)Run issue fix on a specific event. If not provided, the recommended event for the issue will be used.
instruction
(string)Optional custom instruction to guide the issue fix process.
pr_to_comment_on_url
(string)URL of a pull request where the issue fix should add comments.
stopping_point
(string)Where the issue fix process should stop. If not provided, will run to root cause.
root_cause
solution
code_changes
open_pr
Scopes
You need to authenticate via bearer auth token.
<auth_token>
requires one of the following scopes:event:admin
event:write
Copied
curl https://sentry.io/api/0/organizations/{organization_id_or_slug}/issues/{issue_id}/autofix/ \ -H 'Authorization: Bearer <auth_token>' \ -H 'Content-Type: application/json' \ -d '{}'
RESPONSESCHEMA
Copied{ "run_id": 12345 }
Was this helpful?