---
title: "Undo Cleanup Batch"
method: POST
path: "/api/admin/cleanup-batches/{batch_id}/undo"
tags: ["admin-cleanup-batches"]
---

# Undo Cleanup Batch

`POST /api/admin/cleanup-batches/{batch_id}/undo`

## Request

- Base URL: `https://app.thinqos.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.thinqos.com/api/admin/cleanup-batches/{batch_id}/undo`
- Auth: none declared

Restore what the batch (or the given rows) soft-deleted, by each row's own delete.

A move_contents row is undone too: its folder is restored, what it moved is
moved back, and the access it created is removed. A transfer_connection row
gives the connection back to its previous owner.

## Path parameters

- `batch_id` string, uuid, required

## Request body

- UndoCleanupBatchIn
  - `positions` integer[], nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

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