---
title: "Supersede Autopost Decision"
method: POST
path: "/companies/{company_id}/autopost-decisions/{decision_id}/supersede"
tags: ["accounting-settings"]
---

# Supersede Autopost Decision

`POST /companies/{company_id}/autopost-decisions/{decision_id}/supersede`

## Request

- Base URL: `https://app.zeno-works.ch` (the document declares no server; this is the origin it was published from)
- URL: `https://app.zeno-works.ch/companies/{company_id}/autopost-decisions/{decision_id}/supersede`
- Auth: none declared

Let the AI code a **reversed** document again (accountant).

The explicit user action the coder deliberately will not take on its own: its
claim predicate has no reversal escape hatch, so a wrong AI booking that a
human reversed is otherwise never re-proposed
(doc/pipeline.md §"Invoice coding (phase 2)"). Clears the superseded
``autopost:code:`` decision; the coder picks the item up on its next sweep and
proposes from scratch. The decision row itself is destroyed — that IS the
mechanism — while the journal keeps the full reversal audit trail.

409 when the booking still stands (including a reversal that was itself
reversed), when the row is a human ``manual:code:`` booking or booked nothing,
when the document still carries a live recognition plan, or when something
else on the item (a capitalization, an accrual, a linked expense receipt…)
would keep the coder from re-claiming it anyway. 404 for an unknown decision
or a deleted item.

## Path parameters

- `company_id` string, required
- `decision_id` string, required

## Headers

- `authorization` string, nullable

## Cookies

- `access_token` string, nullable

## Response `200`

Successful Response

- MsgResponse: The ``{"msg": "..."}`` envelope — the error contract and many successes.
  - `msg` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/zeno-works/apis/zeno-api.md) · [All operations](https://skmtc.dev/zeno-works/apis/zeno-api/llms.txt) · [OpenAPI document](https://skmtc.dev/zeno-works/apis/zeno-api/revisions/1eb93dde146c?raw)
