---
title: "Run (or preview) a Curator sweep for a tenant"
method: POST
path: "/v1/admin/tenants/{tenant_id}/curator/sweep"
tags: ["admin"]
---

# Run (or preview) a Curator sweep for a tenant

`POST /v1/admin/tenants/{tenant_id}/curator/sweep`

## Request

- Base URL: `https://api.patricia.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.patricia.app/v1/admin/tenants/{tenant_id}/curator/sweep`
- Auth: HTTP bearer

``dry_run=true`` (default) computes the would-do counts WITHOUT mutating; ``dry_run=false`` applies the sweep (prunes/archives + writes an audit row).

## Path parameters

- `tenant_id` string, uuid, required

## Query parameters

- `dry_run` boolean

## Response `200`

Successful Response

- CuratorSweepResult: The counts a sweep changed (or would change, when ``dry_run``).
  - `dry_run` boolean, required
  - `decayed` integer, required
  - `consolidated` integer, required
  - `expired` integer, required
  - `pruned` integer, required
  - `archived` integer, required

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)
- `409`: Conflict
- `422`: Validation error

---

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