Create a custom data quality rule
Create a custom data quality rule with user-provided SQL and success value.
Required Role: nx1_quality
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Body
Request to create a custom data quality rule.
Name of the data quality rule.
Description of what the rule checks.
Trino SQL query for validation.
Fully qualified table name this rule applies to.
Expected success condition (e.g., 'count = 0', 'value > 95').
Response
Rule created.
Unique ID of the data quality rule.
Name of the data quality rule.
Brief explanation of what the rule checks.
Trino SQL query used to validate the rule.
Indicates if the rule has been accepted or not.
The database table this rule applies to.
Uniform Resource Name (URN) of the assertion in DataHub.
Spark SQL query of the rule, if applicable.
Expected success condition for this rule.