---
title: "Create Freshness Schedule"
method: POST
path: "/api/v1/sdk/freshness/schedules"
tags: ["public-api", "public-freshness"]
---

# Create Freshness Schedule

`POST /api/v1/sdk/freshness/schedules`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/v1/sdk/freshness/schedules`
- Auth: none declared

Create a freshness monitoring schedule.

**SDK Usage:**
```python
client = Client()
schedule = client.freshness.create_schedule(
    asset_id="my-asset-uuid",
    table_path="public.orders",
    check_interval="1h",
    expected_interval_hours=24,
)
print(f"Created schedule: {schedule.id}")
```

## Headers

- `Authorization` string

## Request body

- CreateFreshnessScheduleRequest: Request to create a freshness schedule via SDK. For auto_learn mode: expected_interval_hours is optional (system learns automatically) For explicit mode: expected_interval_hours is required to define the SLA
  - `asset_id` string, required: Asset UUID or qualified name
  - `table_path` string, required: Table path (e.g., schema.table_name)
  - `check_interval` string, required: Check interval: '5m', '1h', '6h', '1d', '1w'
  - `expected_interval_hours` number, nullable: Hours until data is considered stale (required for explicit mode)
  - `freshness_column` string, nullable: Column to check for freshness (auto-detected if not provided)
  - `monitoring_mode` string: 'auto_learn' or 'explicit'
  - `is_active` boolean: Whether to enable monitoring

## Response `201`

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)
