---
title: "Rebuild the Preview sample firm"
method: POST
path: "/sample-firm/rebuild"
tags: ["Administration"]
---

# Rebuild the Preview sample firm

`POST /sample-firm/rebuild`

## Request

- Base URL: `https://ledgerhq.pro/api/v1`
- URL: `https://ledgerhq.pro/api/v1/sample-firm/rebuild`
- Auth: one of:
  - HTTP bearer and API key in header `x-organization-id`
  - HTTP bearer and API key in header `x-organization-id`

Owner/admin Preview-host maintenance route. Replaces Madison & Mercer, Amber & Oak, Blue Harbor, and Cedar & Stone with the published two-year realistic accounting fixture, validates the persisted books, and freezes the result as the reset baseline. Production Sentinel and shoot-slot firms are out of scope.

## Request body

- object
  - `confirmed` true, required

## Response `200`

Rebuilt, validated, and frozen sample firm

## Other responses

- `400`: Explicit confirmation is missing
- `404`: Not the Preview sample firm
- `409`: The four-company set is not the published keep-list
- `default`: Error response

---

[API](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api.md) · [All operations](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/revisions/9a8269f0a586?raw)
