---
title: "Admin Gap4 Seed And Rehearse"
method: POST
path: "/admin/gap4_seed_and_rehearse"
---

# Admin Gap4 Seed And Rehearse

`POST /admin/gap4_seed_and_rehearse`

## Request

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

Gap 4: seed a throwaway database with PRODUCTION'S REAL SCHEMA SHAPE
(table definitions only, obtained by the caller via a read-only
`pg_dump --schema-only` against production -- this endpoint never
touches production itself) BEFORE running the additive migration and
the full rehearsal suite against it. Proves the new tables don't
collide with any real existing table/constraint/index name and that
init_projects_db() behaves identically alongside production's actual
schema, not just an empty database.

Same REHEARSAL_DATABASE_URL-only safety rule as the sibling rehearsal
endpoint. schema_sql is applied ONCE per call (the caller is expected
to pass a fresh empty throwaway database each time -- this endpoint
does not attempt to make the seed step itself idempotent, since a
schema dump may contain plain CREATE TABLE, not CREATE TABLE IF NOT
EXISTS).

## Headers

- `x-admin-key` string, nullable

## Request body

- Gap4SeedRequest
  - `schema_sql` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/colourmemory/apis/colour-memory-api.md) · [All operations](https://skmtc.dev/colourmemory/apis/colour-memory-api/llms.txt) · [OpenAPI document](https://skmtc.dev/colourmemory/apis/colour-memory-api/revisions/4ba028f64042?raw)
