---
title: "Merge Duplicate Folders"
method: POST
path: "/api/admin/storage/merge-duplicate-folders"
tags: ["admin-storage"]
---

# Merge Duplicate Folders

`POST /api/admin/storage/merge-duplicate-folders`

## Request

- Base URL: `https://api.tintin-x.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tintin-x.com/api/admin/storage/merge-duplicate-folders`
- Auth: HTTP bearer

Find and merge duplicate folders (same parent + same name) caused by
team members creating separate folders.

Keeps the folder with the most files, moves files and subfolders from
duplicates into it, then deletes the empty duplicates.

## Query parameters

- `dry_run` boolean: If true, only report duplicates without merging

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tintin-x/apis/tintin-api.md) · [All operations](https://skmtc.dev/tintin-x/apis/tintin-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tintin-x/apis/tintin-api/revisions/8839a8d0a66c?raw)
