---
title: "Recover From Prev1"
method: POST
path: "/api/admin/recover-from-prev1"
tags: ["admin"]
---

# Recover From Prev1

`POST /api/admin/recover-from-prev1`

## 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/recover-from-prev1`
- Auth: none declared

One-time, PER-PROGRAM recovery of rows lost to the non-atomic upsert
(2026-06-14). Re-inserts rows that exist in the prev1 backup for the given
source(s) but are missing from the live DB. Scoped to the named sources
only (never touches other programs' freshly-ingested data), to current-window
dates only (no reintroducing pruned past dates), and to missing IDs only via
a hash anti-join (bypasses the PK index). Idempotent.

Body: {"sources": ["qantas", ...]}  or  {"source": "qantas"}

## 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)
