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

# Preview data product rule

`POST /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

---

[API](https://skmtc.net/marmotdata/apis/marmot-api.md) · [All operations](https://skmtc.net/marmotdata/apis/marmot-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/marmotdata/marmot-api/versions/ba1b1c4be2e7/schema)
