---
title: "Revert Autonomous Fix"
method: POST
path: "/api/issues/{issue_id}/revert-autonomous-fix"
tags: ["issues"]
---

# Revert Autonomous Fix

`POST /api/issues/{issue_id}/revert-autonomous-fix`

## Request

- Base URL: `https://api.pigeonly.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pigeonly.com/api/issues/{issue_id}/revert-autonomous-fix`
- Auth: none declared

Frederick's own described interaction, verbatim (2026-08-09): "if I
want to undo it, I could even go to that issue and revert it, click a
button that says revert -- the fix he just put -- or if I'm fine with
it, I can leave it alone." Doing nothing is the default -- this route is
the ONLY way an autonomous fix (app/modules/audit/railway_autofix.py)
is ever undone; nothing in this codebase calls it unattended. Called
from the issue detail screen's own "Revert this fix" card
(apps/web/src/pages/issues/IssueDetailPage.tsx), drawn only for an
issue that actually carries an autonomous fix and only for someone
holding the grant this route requires.

Gated on `issues:approve_production` -- the decorator (`REVERT_AUTOFIX`,
module-level, see this module's own docstring) AND, redundantly,
`railway_autofix.revert_fix` itself (`RevertNotPermitted`) -- the same
grant that gates a production deploy, because undoing a production
infrastructure change is exactly as consequential as approving one.

## Path parameters

- `issue_id` string, uuid, required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os.md) - [All operations](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/llms.txt) - [OpenAPI document](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/revisions/14571c4b7007?raw)
