---
title: "Trigger Freshness Analysis"
method: POST
path: "/api/v1/assets/{asset_id}/freshness/analyses"
tags: ["freshness"]
---

# Trigger Freshness Analysis

`POST /api/v1/assets/{asset_id}/freshness/analyses`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/v1/assets/{asset_id}/freshness/analyses`
- Auth: none declared

Trigger freshness pattern analysis for tables.

Analyzes historical data to detect update patterns and improve
freshness monitoring accuracy.

Supports filtering by:
- Specific table paths
- Tag names (e.g., 'orders', 'customer_data')
- Tag categories (e.g., 'business', 'compliance')

## Path parameters

- `asset_id` string, uuid, required

## Headers

- `Authorization` string

## Request body

- FreshnessAnalysisRequest: Request for freshness analysis. Note: Validation is handled by FreshnessValidationService
  - `table_paths` string[], nullable: Specific tables to analyze
  - `tags` string[], nullable: Filter by tag names (e.g., 'orders', 'customer_data')
  - `tag_categories` string[], nullable: Filter by tag categories (e.g., 'business', 'compliance')
  - `force_refresh` boolean: Force refresh of cached data

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