---
title: "Create Data Quality Check Schedule"
method: POST
path: "/api/v1/assets/{asset_id}/data-quality/schedules"
tags: ["data_quality"]
---

# Create Data Quality Check Schedule

`POST /api/v1/assets/{asset_id}/data-quality/schedules`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/v1/assets/{asset_id}/data-quality/schedules`
- Auth: none declared

Create a new automated data quality check schedule for an asset.

    Supports multiple check types:
    - **freshness**: Monitor data recency using timestamp columns or row counts
    - **statistical**: Run statistical analysis for anomaly detection (future)

    The schedule will automatically execute checks based on the specified interval.

## Path parameters

- `asset_id` integer, required

## Headers

- `Authorization` string

## Request body

- AppDomainsFeatureDataQualityModelsSchedulesCreateScheduleRequest: Request model for creating check schedules.
  - `table_path` string, required: Full path to the table to monitor
  - `check_type` 'freshness' | 'statistical' | 'anomaly' | 'row_count' | 'consistency' | 'custom_sql', required: Types of data quality checks.
  - `check_interval` string, required: How often to run the check (cron expression or human-readable)
  - `enabled` boolean: Whether the schedule should be active immediately
  - `check_config` object, required: Configuration specific to the check type
  - `metadata` object, nullable: Additional metadata for the schedule

## 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

- `201`: Schedule created successfully
- `400`: Invalid request parameters
- `404`: Asset not found
- `409`: Schedule already exists for this table path and check type
- `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)
