---
search:
  tags:
    - Operations
    - POST
seo:
  description: >-
    Takes the folder off the cards the run filed and the tags off… Reference for
    the POST /v1/folders/{folderId}/rule-runs/{runId}/undo endpoint in the Teak
    API.
sidebar:
  label: Undo a folder rule run
  badge: POST
title: Undo a folder rule run
type: openapi-operation
---
Takes the folder off the cards the run filed and the tags off the cards it tagged, where they are still there. The rules stay, and never put those cards or tags back.

`POST /v1/folders/{folderId}/rule-runs/{runId}/undo`

**Responses**

- `200` — The run, now undoing
- `404` — Folder or rule run not found
- `409` — The run is more than a day old

Response example, 200:

```json
{
  "id": "string",
  "folderId": "string",
  "status": "running",
  "filedCount": 0,
  "taggedCount": 0,
  "canUndo": true,
  "createdAt": 0,
  "completedAt": 0
}
```
