---
title: "Create a new quality rule"
method: POST
path: "/v1/quality/rules"
tags: ["Quality Rules"]
---

# Create a new quality rule

`POST /v1/quality/rules`

## Request

- Base URL: `https://api.cloud.precisely.com`
- URL: `https://api.cloud.precisely.com/v1/quality/rules`
- Auth: HTTP bearer

Creates a new quality rule with the provided details.

## Request body

- RuleRequestCreateView: Represents the request view for a rule.
  - `captureFailedRecords` boolean
  - `customProperties` RuleCustomProperty[]: Custom metadata properties to attach to this rule.
    - `name` string: The property name.
    - `value` unknown
  - `description` string
  - `dimensionName` string
  - `enableAutoRun` boolean
  - `failedCondition` ConditionView: Represents conditon view to create or update a rule.
    - `config` string
    - `type` string
  - `filterCondition` ConditionView: Represents conditon view to create or update a rule.
    - `config` string
    - `type` string
  - `mappings` object[]
  - `name` string
  - `passCondition` ConditionView: Represents conditon view to create or update a rule.
    - `config` string
    - `type` string
  - `reconciliationStrategy` string: Reconciliation execution strategy for reconciliation rules (e.g. RUN_WITH_EXECUTION, COMPARE_RUN).
  - `ruleType` string
  - `scoreBands` BandInfo[]: Score bands configured for the rule.
    - `color` string
    - `label` string
    - `minimumValue` number, double
  - `scoreClass` 'Quality' | 'Governance': Score class the rule belongs to. Defaults to Quality when omitted.
  - `scoreTarget` string: Identifier of the asset the rule is scored against.
  - `targetAssetsFilter` string[]
  - `targetingType` string

## Response `200`

Rule created successfully

- object
  - `id` string

## Other responses

- `400`: Invalid request payload
- `500`: Internal server error

---

[API](https://skmtc.dev/precisely/apis/verify-api-portal.md) · [All operations](https://skmtc.dev/precisely/apis/verify-api-portal/llms.txt) · [OpenAPI document](https://skmtc.dev/precisely/apis/verify-api-portal/revisions/380735465266?raw)
