---
title: "POST /v1/workspaces/{workspaceId}/triage-actions/{actionId}/undo"
method: POST
path: "/v1/workspaces/{workspaceId}/triage-actions/{actionId}/undo"
---

# POST /v1/workspaces/{workspaceId}/triage-actions/{actionId}/undo

`POST /v1/workspaces/{workspaceId}/triage-actions/{actionId}/undo`

## Request

- Base URL: `https://api.bangermail.com`
- URL: `https://api.bangermail.com/v1/workspaces/{workspaceId}/triage-actions/{actionId}/undo`
- Auth: HTTP bearer

Reverse one Triage action. By default also teach its rule the email is not a match; set teach_rule to false for ordinary undo.

## Request body

- object
  - `teach_rule` boolean: Also teach the rule that this email is not a match. False reverses the action without feedback.

## Response `200`

Successful response.

- object
  - `data` object, required
    - `undone` true, required
    - `command_id` string, uuid, nullable, required

---

[API](https://skmtc.dev/bangermail/apis/banger-api.md) · [All operations](https://skmtc.dev/bangermail/apis/banger-api/llms.txt) · [OpenAPI document](https://skmtc.dev/bangermail/apis/banger-api/revisions/a149909267f9?raw)
