---
title: "Get data product rules"
method: GET
path: "/products/rules/{id}"
tags: ["products"]
---

# Get data product rules

`GET /products/rules/{id}`

Get the membership rules of a data product

## Path parameters

- `id` string, required

## Response `200`

OK

- DataProductRulesResponse
  - `rules` DataProductRule[]
    - `created_at` string
    - `data_product_id` string
    - `description` string
    - `id` string
    - `is_enabled` boolean
    - `matched_asset_count` integer
    - `metadata_field` string
    - `name` string
    - `pattern_type` string
    - `pattern_value` string
    - `priority` integer
    - `query_expression` string
    - `rule_type` 'query' | 'metadata_match'
    - `updated_at` string
  - `total` integer

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `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)
