Rule Templates
Manage reusable rule templates and their deployments to monitors. Paths are keyed on the rule template name (ruleTemplateName) for consistency with jobName and ruleName. A template name is mutable, so renaming a template changes its URL - requests using the old name return 404 (no alias is kept).
Returns rule templates the user can view, sorted and paginated.
Permissions
Required:
DATA_QUALITYandDATA_QUALITY_DEPLOY_TEMPLATESOr:
DATA_QUALITYandGLOBAL_MANAGE_ALL_RESOURCES
Collibra REST API authentication using Basic Authentication.
Case-insensitive partial match on template name.
Exact match on a data quality dimension.
Filter by creator username.
Filter on system-defined vs user-created templates.
Field to sort by.
dimensionsPossible values: Sort direction.
ASCPossible values: Number of items to skip.
0Maximum number of items to return.
100A paged list of rule templates.
Paged list of rule templates.
Total number of matching items.
Current offset.
Page size.
Bad Request
Unauthorized
Forbidden
Internal Server Error
GET /rest/dq/1.0/ruleTemplates HTTP/1.1
Authorization: Basic username:password
Accept: */*
{
"results": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"ruleTemplateName": "Row Count Range",
"description": "text",
"sql": "text",
"dialect": "text",
"dimensions": [
"text"
],
"tolerance": 1,
"isSystem": true,
"deployedRuleCount": 1,
"businessRuleAssetIds": [
"123e4567-e89b-12d3-a456-426614174000"
],
"translatedQueries": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"createdAt": "2026-01-01T00:00:00.000Z",
"createdBy": {
"id": "d6973b7c-383a-4bf3-b29e-1b664bb2162e",
"userName": "text"
},
"updatedAt": "2026-01-01T00:00:00.000Z",
"updatedBy": {
"id": "d6973b7c-383a-4bf3-b29e-1b664bb2162e",
"userName": "text"
}
}
],
"total": 1,
"offset": 1,
"limit": 1
}Creates a rule template and returns the full template (the same schema as GET) with the generated id populated. The ruleTemplateName must be unique; creating one with a name that already exists fails with 409.
A 400 is returned on validation failure, untranslatable SQL, or a businessRuleAssetIds entry that is not a Business Rule asset.
Permissions
Required:
DATA_QUALITYandDATA_QUALITY_MANAGE_TEMPLATESOr:
DATA_QUALITYandGLOBAL_MANAGE_ALL_RESOURCES
Collibra REST API authentication using Basic Authentication.
Create or update payload. On create, ruleTemplateName must be unique. On update, supplying a different ruleTemplateName renames the template - which changes its URL (the old name then returns 404, no alias is kept).
Number of breaking records tolerated before the rule reports breaking (non-negative integer).
The created rule template.
A reusable rule template.
Server-generated identifier.
Unique, human-readable template name. Used as the path key.
Row Count RangeTemplate description.
Parameterized SQL query with a {{column}} placeholder.
SQL dialect the query was authored in.
Data quality dimensions.
Number of breaking records tolerated before the rule reports breaking (non-negative integer).
True if this template is system-defined (ships with the product and is read-only).
Number of rules currently deployed from this template.
Linked business rule asset ids.
Bad Request
Unauthorized
Forbidden
Conflict
Internal Server Error
POST /rest/dq/1.0/ruleTemplates HTTP/1.1
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 178
{
"ruleTemplateName": "text",
"description": "text",
"sql": "text",
"dialect": "text",
"dimensions": [
"text"
],
"tolerance": 1,
"businessRuleAssetIds": [
"123e4567-e89b-12d3-a456-426614174000"
]
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"ruleTemplateName": "Row Count Range",
"description": "text",
"sql": "text",
"dialect": "text",
"dimensions": [
"text"
],
"tolerance": 1,
"isSystem": true,
"deployedRuleCount": 1,
"businessRuleAssetIds": [
"123e4567-e89b-12d3-a456-426614174000"
],
"translatedQueries": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"createdAt": "2026-01-01T00:00:00.000Z",
"createdBy": {
"id": "d6973b7c-383a-4bf3-b29e-1b664bb2162e",
"userName": "text"
},
"updatedAt": "2026-01-01T00:00:00.000Z",
"updatedBy": {
"id": "d6973b7c-383a-4bf3-b29e-1b664bb2162e",
"userName": "text"
}
}Returns a single rule template by name.
Permissions
Required:
DATA_QUALITYandDATA_QUALITY_DEPLOY_TEMPLATESOr:
DATA_QUALITYandGLOBAL_MANAGE_ALL_RESOURCES
Collibra REST API authentication using Basic Authentication.
The rule template name. Note: the name is mutable, so renaming a template changes this path - requests using the old name return 404 (no alias is kept).
Row_Count_RangeThe rule template.
A reusable rule template.
Server-generated identifier.
Unique, human-readable template name. Used as the path key.
Row Count RangeTemplate description.
Parameterized SQL query with a {{column}} placeholder.
SQL dialect the query was authored in.
Data quality dimensions.
Number of breaking records tolerated before the rule reports breaking (non-negative integer).
True if this template is system-defined (ships with the product and is read-only).
Number of rules currently deployed from this template.
Linked business rule asset ids.
Unauthorized
Forbidden
Not Found
Internal Server Error
GET /rest/dq/1.0/ruleTemplates/{ruleTemplateName} HTTP/1.1
Authorization: Basic username:password
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"ruleTemplateName": "Row Count Range",
"description": "text",
"sql": "text",
"dialect": "text",
"dimensions": [
"text"
],
"tolerance": 1,
"isSystem": true,
"deployedRuleCount": 1,
"businessRuleAssetIds": [
"123e4567-e89b-12d3-a456-426614174000"
],
"translatedQueries": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"createdAt": "2026-01-01T00:00:00.000Z",
"createdBy": {
"id": "d6973b7c-383a-4bf3-b29e-1b664bb2162e",
"userName": "text"
},
"updatedAt": "2026-01-01T00:00:00.000Z",
"updatedBy": {
"id": "d6973b7c-383a-4bf3-b29e-1b664bb2162e",
"userName": "text"
}
}Updates a rule template and cascades the change to its deployed rules in a single transaction. The response enumerates per-deployment results so partial updates are visible: deployments that cannot be resolved (for example a missing dialect) are reported as SKIPPED rather than failing the whole update.
A 400 is returned on validation failure, when renaming to a name that already exists, or when attempting to modify an out-of-the-box template.
Permissions
Required:
DATA_QUALITYandDATA_QUALITY_MANAGE_TEMPLATESOr:
DATA_QUALITYandGLOBAL_MANAGE_ALL_RESOURCES
Collibra REST API authentication using Basic Authentication.
The rule template name. Note: the name is mutable, so renaming a template changes this path - requests using the old name return 404 (no alias is kept).
Row_Count_RangeCreate or update payload. On create, ruleTemplateName must be unique. On update, supplying a different ruleTemplateName renames the template - which changes its URL (the old name then returns 404, no alias is kept).
Number of breaking records tolerated before the rule reports breaking (non-negative integer).
The updated template plus the per-deployment cascade results.
The updated template plus the per-deployment cascade results, so a partial update (some deployments skipped) is visible to the caller.
Bad Request
Unauthorized
Forbidden
Not Found
The update failed for a reason other than invalid input.
PUT /rest/dq/1.0/ruleTemplates/{ruleTemplateName} HTTP/1.1
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 178
{
"ruleTemplateName": "text",
"description": "text",
"sql": "text",
"dialect": "text",
"dimensions": [
"text"
],
"tolerance": 1,
"businessRuleAssetIds": [
"123e4567-e89b-12d3-a456-426614174000"
]
}{
"ruleTemplate": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"ruleTemplateName": "Row Count Range",
"description": "text",
"sql": "text",
"dialect": "text",
"dimensions": [
"text"
],
"tolerance": 1,
"isSystem": true,
"deployedRuleCount": 1,
"businessRuleAssetIds": [
"123e4567-e89b-12d3-a456-426614174000"
],
"translatedQueries": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"createdAt": "2026-01-01T00:00:00.000Z",
"createdBy": {
"id": "d6973b7c-383a-4bf3-b29e-1b664bb2162e",
"userName": "text"
},
"updatedAt": "2026-01-01T00:00:00.000Z",
"updatedBy": {
"id": "d6973b7c-383a-4bf3-b29e-1b664bb2162e",
"userName": "text"
}
},
"deployments": [
{
"jobName": "crm_raw.DimAccount",
"columnName": "text",
"deployedRuleName": "text",
"status": "DEPLOYED",
"reason": "text"
}
]
}Deletes a rule template. The operation is idempotent: if no template with that name exists, it still returns 204 No Content.
A 400 is returned when the template is out-of-the-box: out-of-the-box templates cannot be deleted.
Permissions
Required:
DATA_QUALITYandDATA_QUALITY_MANAGE_TEMPLATESOr:
DATA_QUALITYandGLOBAL_MANAGE_ALL_RESOURCES
Collibra REST API authentication using Basic Authentication.
The rule template name. Note: the name is mutable, so renaming a template changes this path - requests using the old name return 404 (no alias is kept).
Row_Count_RangeAlso delete every rule deployed from this template.
falseThe template was deleted, or no matching template existed.
No content
Bad Request
Unauthorized
Forbidden
Internal Server Error
DELETE /rest/dq/1.0/ruleTemplates/{ruleTemplateName} HTTP/1.1
Authorization: Basic username:password
Accept: */*
No content
Deploys the template to one or more targets, creating a rule on each. The response reports a per-target outcome. A batch deploy is handled gracefully: targets that cannot be deployed (for example a missing dialect) are reported as SKIPPED while the others still deploy.
A 400 is returned on validation failure of the deploy request.
Permissions
Required:
DATA_QUALITYandDATA_QUALITY_DEPLOY_TEMPLATESOr:
DATA_QUALITYandGLOBAL_MANAGE_ALL_RESOURCES
Collibra REST API authentication using Basic Authentication.
The rule template name. Note: the name is mutable, so renaming a template changes this path - requests using the old name return 404 (no alias is kept).
Row_Count_RangeA request to deploy a template to one or more targets.
Per-target deploy outcomes.
Per-target deploy outcomes.
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
POST /rest/dq/1.0/ruleTemplates/{ruleTemplateName}/deploy HTTP/1.1
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 90
{
"targets": [
{
"jobName": "crm_raw.DimAccount",
"columnName": "text",
"connectionName": "text"
}
]
}{
"results": [
{
"jobName": "crm_raw.DimAccount",
"columnName": "text",
"deployedRuleName": "text",
"status": "DEPLOYED",
"reason": "text"
}
]
}Returns the rules currently deployed from this template.
Permissions
Required:
DATA_QUALITYandDATA_QUALITY_DEPLOY_TEMPLATESOr:
DATA_QUALITYandGLOBAL_MANAGE_ALL_RESOURCES
Collibra REST API authentication using Basic Authentication.
The rule template name. Note: the name is mutable, so renaming a template changes this path - requests using the old name return 404 (no alias is kept).
Row_Count_RangeThe template's current deployments.
Paged list of a rule template's deployments.
Total number of matching items.
Current offset.
Page size.
Unauthorized
Forbidden
Not Found
Internal Server Error
GET /rest/dq/1.0/ruleTemplates/{ruleTemplateName}/deployments HTTP/1.1
Authorization: Basic username:password
Accept: */*
{
"results": [
{
"jobName": "crm_raw.DimAccount",
"deployedRuleName": "text",
"columnName": "text",
"connectionId": "123e4567-e89b-12d3-a456-426614174000",
"edgeSiteId": "123e4567-e89b-12d3-a456-426614174000",
"lastRun": "2026-01-01T00:00:00.000Z",
"lastRunStatus": null,
"creator": {
"id": "d6973b7c-383a-4bf3-b29e-1b664bb2162e",
"userName": "text"
},
"relatedAssetIds": [
"123e4567-e89b-12d3-a456-426614174000"
]
}
],
"total": 1,
"offset": 1,
"limit": 1
}Detaches a single deployed rule from the template (a soft unlink - the rule and its history are preserved). The rule is identified by its jobName and deployedRuleName, since one template can be deployed to many rules across many jobs.
A 400 is returned when the rule exists but was not deployed from this template (or is already detached).
Permissions
Required:
DATA_QUALITYandDATA_QUALITY_DEPLOY_TEMPLATESOr:
DATA_QUALITYandGLOBAL_MANAGE_ALL_RESOURCES
Collibra REST API authentication using Basic Authentication.
The rule template name. Note: the name is mutable, so renaming a template changes this path - requests using the old name return 404 (no alias is kept).
Row_Count_RangeIdentifies the deployed rule to detach from the template.
Job name. Allowed characters by default: letters, digits, _, ., -. Configurable via the server env variable VALIDATION_PATTERN_JOB_NAME. Default pattern: ^[a-zA-Z0-9_.-]+$.
crm_raw.DimAccountPattern: ^[a-zA-Z0-9_.-]+$The rule was detached.
No content
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
POST /rest/dq/1.0/ruleTemplates/{ruleTemplateName}/detach HTTP/1.1
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 58
{
"jobName": "crm_raw.DimAccount",
"deployedRuleName": "text"
}No content
Last updated
Was this helpful?