list_rules
List the product rules (Attribute Rules) available to a project. Returns {rules:[{ruleId, name, description, category, scope, usageCount}], returned, total}. usageCount is how many feed attributes currently use the rule. scope selects which library to list: 'project' (default) = the project's own rules; 'shared_template' = the reusable shared template library; 'all' = both. Optionally pass query: a case-insensitive SUBSTRING match on the rule NAME only (a coarse pre-filter — rule names are not unique, so confirm the match yourself and disambiguate when more than one matches). Use get_rule to fetch a rule's full rules[]. project_id is OPTIONAL (inferred for a single-project customer; project_id_required otherwise — then call list_projects). Returns all rules in one call (returned === total); not paginated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Optional case-insensitive SUBSTRING match on the rule NAME only (a coarse pre-filter; confirm the match yourself as names are not unique). | |
| scope | No | Which library to list: 'project' (default) = the project's own rules; 'shared_template' = the reusable shared template library; 'all' = both. | |
| project_id | No |