---
title: "Preview data product rule"
method: POST
path: "/api/v1/products/rule-preview"
tags: ["products"]
---

# Preview data product rule

`POST /api/v1/products/rule-preview`

Preview which assets would match a rule configuration

## Query parameters

- `limit` integer

## Request body

- DataProductRuleRequest
  - `description` string
  - `is_enabled` boolean
  - `metadata_field` string
  - `name` string, required
  - `pattern_type` string
  - `pattern_value` string
  - `priority` integer
  - `query_expression` string
  - `rule_type` string, required

## Response `200`

OK

- DataProductRulePreview
  - `asset_count` integer
  - `asset_ids` string[]
  - `errors` string[]

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

## Changes

> 56 revisions in range; 1 not diffed.

- **2026-08-24** `0bd802afff21` — 2 info
  - the endpoint scheme security `ApiKeyAuth` was added to the API
  - the endpoint scheme security `BearerAuth` was added to the API

[Change history](https://skmtc.dev/marmotdata/apis/marmot-api/changes/api/v1/products/rule-preview/post.md)

---

[API](https://skmtc.dev/marmotdata/apis/marmot-api.md) · [All operations](https://skmtc.dev/marmotdata/apis/marmot-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/marmotdata/marmot-api/revisions/0bd802afff21/schema)
