---
title: "Check a configuration without saving it"
method: POST
path: "/api/v1/admin/config/preview"
tags: ["admin"]
---

# Check a configuration without saving it

`POST /api/v1/admin/config/preview`

## Request

- Base URL: `https://api.cadencz.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.cadencz.com/api/v1/admin/config/preview`
- Auth: HTTP bearer

Returns the exact change set a save would apply, plus any validation errors and non-blocking warnings. This is what the confirmation dialog shows, so the admin approves the real diff rather than a guess at it.

## Request body

- AdminConfigSaveRequest
  - `config` object, required
  - `expected_version` integer, nullable
  - `section` string, nullable
  - `note` string, nullable
  - `confirm` boolean

## Response `200`

Successful Response

- AdminConfigPreviewResponse: What a save would do, without doing it.
  - `valid` boolean, required
  - `errors` object[], required
  - `warnings` string[], required
  - `changes` AdminConfigChange[], required
    - `path` string, required
    - `before` unknown
    - `after` unknown

## Other responses

- `401`: Missing or invalid Supabase bearer token.
- `422`: Validation Error

---

[API](https://skmtc.dev/cadencz/apis/cadencz-api.md) · [All operations](https://skmtc.dev/cadencz/apis/cadencz-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cadencz/apis/cadencz-api/revisions/3392fe5e93db?raw)
