---
title: "Create Schema Baseline"
method: POST
path: "/api/v1/sdk/schema/{asset_id}/baseline"
tags: ["public-api", "public-schema"]
---

# Create Schema Baseline

`POST /api/v1/sdk/schema/{asset_id}/baseline`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/v1/sdk/schema/{asset_id}/baseline`
- Auth: none declared

Create a schema baseline for drift detection.

Captures the current schema as the baseline. Any future schema changes
will be compared against this baseline.

**SDK Usage:**
```python
from anomalyarmor import Client
client = Client()
baseline = client.schema.create_baseline(
    asset_id="my-asset-uuid",
    description="Initial production baseline",
)
print(f"Captured {baseline.table_count} tables")
```

## Path parameters

- `asset_id` string, required

## Headers

- `Authorization` string

## Request body

- CreateBaselineRequest: Request to create schema baseline via SDK.
  - `description` string, nullable: Optional description for the baseline

## Response `200`

Successful Response

- StandardResponse: Standard API response wrapper.
  - `success` boolean, required
  - `data` unknown
  - `message` string, nullable
  - `error` string, nullable
  - `meta` object, nullable

## Other responses

- `422`: Validation Error

---

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