---
title: "Rebuild Reference Db"
method: POST
path: "/preprocessing/rebuild-reference-db"
tags: ["preprocessing", "admin"]
---

# Rebuild Reference Db

`POST /preprocessing/rebuild-reference-db`

## Request

- Base URL: `https://api.helena.bio` (the document declares no server; this is the origin it was published from)
- URL: `https://api.helena.bio/preprocessing/rebuild-reference-db`
- Auth: none declared

Rebuild reference_db.duckdb from existing parquet files.

Does NOT re-download or re-convert. Creates a fresh DuckDB file
from all available parquet data with atomic replacement.

WARNING: Reference database is temporarily unavailable during rebuild.
Active analysis sessions may fail.

## Request body

- RebuildReferenceDBRequest: Request for POST /preprocessing/rebuild-reference-db.
  - `confirm` boolean

## Response `202`

Successful Response

- TaskCreatedResponse: Response for task creation endpoints (202 Accepted).
  - `task_id` string, required
  - `status` string, required
  - `databases` string[], nullable
  - `status_url` string, required
  - `message` string, nullable
  - `warning` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/helena/apis/helix-insight-variant-analysis-service.md) · [All operations](https://skmtc.dev/helena/apis/helix-insight-variant-analysis-service/llms.txt) · [OpenAPI document](https://skmtc.dev/helena/apis/helix-insight-variant-analysis-service/revisions/fe51fd20cdf1?raw)
