---
title: "Trigger Archive"
method: POST
path: "/api/admin/run-archive"
---

# Trigger Archive

`POST /api/admin/run-archive`

## Request

- Base URL: `https://www.awardflightdaily.com` (the document declares no server; this is the origin it was published from)
- URL: `https://www.awardflightdaily.com/api/admin/run-archive`
- Auth: none declared

Trigger weekly archive: move past-date and expired rows to historical DB.

JSON body (all optional):
  cutoff_date:    archive rows before this date (default: today)
  rotate_backups: rotate historical.duckdb backups first (default: true)

Returns immediately. Poll /api/admin/archive-status for progress.

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.dev/awardflightdaily/apis/award-flight-database.md) · [All operations](https://skmtc.dev/awardflightdaily/apis/award-flight-database/llms.txt) · [OpenAPI document](https://skmtc.dev/awardflightdaily/apis/award-flight-database/revisions/93e62de446f9?raw)
