Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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).

List rule templates

get

Returns rule templates the user can view, sorted and paginated.

Permissions

  • Required: DATA_QUALITY and DATA_QUALITY_DEPLOY_TEMPLATES

  • Or: DATA_QUALITY and GLOBAL_MANAGE_ALL_RESOURCES

Authorizations
AuthorizationstringRequired

Collibra REST API authentication using Basic Authentication.

Query parameters
namestringOptional

Case-insensitive partial match on template name.

dimensionstringOptional

Exact match on a data quality dimension.

createdBystringOptional

Filter by creator username.

isSystembooleanOptional

Filter on system-defined vs user-created templates.

sortBystring · enumOptional

Field to sort by.

Default: dimensionsPossible values:
sortDirstring · enumOptional

Sort direction.

Default: ASCPossible values:
offsetintegerOptional

Number of items to skip.

Default: 0
limitinteger · min: 1 · max: 1000Optional

Maximum number of items to return.

Default: 100
Responses
200

A paged list of rule templates.

application/json

Paged list of rule templates.

totalinteger · int64Required

Total number of matching items.

offsetinteger · int64Required

Current offset.

limitinteger · int64Required

Page size.

get/ruleTemplates
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
}

Create a rule template

post

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_QUALITY and DATA_QUALITY_MANAGE_TEMPLATES

  • Or: DATA_QUALITY and GLOBAL_MANAGE_ALL_RESOURCES

Authorizations
AuthorizationstringRequired

Collibra REST API authentication using Basic Authentication.

Body

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).

ruleTemplateNamestring · min: 1 · max: 255Required
descriptionstring · max: 1000Required
sqlstring · min: 1 · max: 10000Required
dialectstring · min: 1 · max: 255Required
dimensionsstring[] · min: 1 · max: 20Required
toleranceintegerOptional

Number of breaking records tolerated before the rule reports breaking (non-negative integer).

businessRuleAssetIdsstring · uuid[] · max: 100Optional
Responses
201

The created rule template.

application/json

A reusable rule template.

idstring · uuidRequired

Server-generated identifier.

ruleTemplateNamestringRequired

Unique, human-readable template name. Used as the path key.

Example: Row Count Range
descriptionstringOptional

Template description.

sqlstringOptional

Parameterized SQL query with a {{column}} placeholder.

dialectstringOptional

SQL dialect the query was authored in.

dimensionsstring[] · max: 20Optional

Data quality dimensions.

toleranceintegerOptional

Number of breaking records tolerated before the rule reports breaking (non-negative integer).

isSystembooleanOptional

True if this template is system-defined (ships with the product and is read-only).

deployedRuleCountinteger · int64Optional

Number of rules currently deployed from this template.

businessRuleAssetIdsstring · uuid[] · max: 100Optional

Linked business rule asset ids.

createdAtstring · date-timeOptional
updatedAtstring · date-timeOptional
post/ruleTemplates
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"
  }
}

Get a rule template

get

Returns a single rule template by name.

Permissions

  • Required: DATA_QUALITY and DATA_QUALITY_DEPLOY_TEMPLATES

  • Or: DATA_QUALITY and GLOBAL_MANAGE_ALL_RESOURCES

Authorizations
AuthorizationstringRequired

Collibra REST API authentication using Basic Authentication.

Path parameters
ruleTemplateNamestring · min: 1 · max: 255Required

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).

Example: Row_Count_Range
Responses
200

The rule template.

application/json

A reusable rule template.

idstring · uuidRequired

Server-generated identifier.

ruleTemplateNamestringRequired

Unique, human-readable template name. Used as the path key.

Example: Row Count Range
descriptionstringOptional

Template description.

sqlstringOptional

Parameterized SQL query with a {{column}} placeholder.

dialectstringOptional

SQL dialect the query was authored in.

dimensionsstring[] · max: 20Optional

Data quality dimensions.

toleranceintegerOptional

Number of breaking records tolerated before the rule reports breaking (non-negative integer).

isSystembooleanOptional

True if this template is system-defined (ships with the product and is read-only).

deployedRuleCountinteger · int64Optional

Number of rules currently deployed from this template.

businessRuleAssetIdsstring · uuid[] · max: 100Optional

Linked business rule asset ids.

createdAtstring · date-timeOptional
updatedAtstring · date-timeOptional
get/ruleTemplates/{ruleTemplateName}
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"
  }
}

Update a rule template

put

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_QUALITY and DATA_QUALITY_MANAGE_TEMPLATES

  • Or: DATA_QUALITY and GLOBAL_MANAGE_ALL_RESOURCES

Authorizations
AuthorizationstringRequired

Collibra REST API authentication using Basic Authentication.

Path parameters
ruleTemplateNamestring · min: 1 · max: 255Required

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).

Example: Row_Count_Range
Body

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).

ruleTemplateNamestring · min: 1 · max: 255Required
descriptionstring · max: 1000Required
sqlstring · min: 1 · max: 10000Required
dialectstring · min: 1 · max: 255Required
dimensionsstring[] · min: 1 · max: 20Required
toleranceintegerOptional

Number of breaking records tolerated before the rule reports breaking (non-negative integer).

businessRuleAssetIdsstring · uuid[] · max: 100Optional
Responses
200

The updated template plus the per-deployment cascade results.

application/json

The updated template plus the per-deployment cascade results, so a partial update (some deployments skipped) is visible to the caller.

put/ruleTemplates/{ruleTemplateName}
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"
    }
  ]
}

Delete a rule template

delete

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_QUALITY and DATA_QUALITY_MANAGE_TEMPLATES

  • Or: DATA_QUALITY and GLOBAL_MANAGE_ALL_RESOURCES

Authorizations
AuthorizationstringRequired

Collibra REST API authentication using Basic Authentication.

Path parameters
ruleTemplateNamestring · min: 1 · max: 255Required

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).

Example: Row_Count_Range
Query parameters
deleteDeploymentsbooleanOptional

Also delete every rule deployed from this template.

Default: false
Responses
204

The template was deleted, or no matching template existed.

No content

delete/ruleTemplates/{ruleTemplateName}
DELETE /rest/dq/1.0/ruleTemplates/{ruleTemplateName} HTTP/1.1
Authorization: Basic username:password
Accept: */*

No content

Deploy a rule template to targets

post

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_QUALITY and DATA_QUALITY_DEPLOY_TEMPLATES

  • Or: DATA_QUALITY and GLOBAL_MANAGE_ALL_RESOURCES

Authorizations
AuthorizationstringRequired

Collibra REST API authentication using Basic Authentication.

Path parameters
ruleTemplateNamestring · min: 1 · max: 255Required

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).

Example: Row_Count_Range
Body

A request to deploy a template to one or more targets.

Responses
200

Per-target deploy outcomes.

application/json

Per-target deploy outcomes.

post/ruleTemplates/{ruleTemplateName}/deploy
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"
    }
  ]
}

List a rule template's deployments

get

Returns the rules currently deployed from this template.

Permissions

  • Required: DATA_QUALITY and DATA_QUALITY_DEPLOY_TEMPLATES

  • Or: DATA_QUALITY and GLOBAL_MANAGE_ALL_RESOURCES

Authorizations
AuthorizationstringRequired

Collibra REST API authentication using Basic Authentication.

Path parameters
ruleTemplateNamestring · min: 1 · max: 255Required

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).

Example: Row_Count_Range
Responses
200

The template's current deployments.

application/json

Paged list of a rule template's deployments.

totalinteger · int64Required

Total number of matching items.

offsetinteger · int64Required

Current offset.

limitinteger · int64Required

Page size.

get/ruleTemplates/{ruleTemplateName}/deployments
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
}

Detach a deployed rule from a template

post

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_QUALITY and DATA_QUALITY_DEPLOY_TEMPLATES

  • Or: DATA_QUALITY and GLOBAL_MANAGE_ALL_RESOURCES

Authorizations
AuthorizationstringRequired

Collibra REST API authentication using Basic Authentication.

Path parameters
ruleTemplateNamestring · min: 1 · max: 255Required

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).

Example: Row_Count_Range
Body

Identifies the deployed rule to detach from the template.

jobNamestring · min: 1 · max: 255Required

Job name. Allowed characters by default: letters, digits, _, ., -. Configurable via the server env variable VALIDATION_PATTERN_JOB_NAME. Default pattern: ^[a-zA-Z0-9_.-]+$.

Example: crm_raw.DimAccountPattern: ^[a-zA-Z0-9_.-]+$
deployedRuleNamestring · max: 255Required
Responses
204

The rule was detached.

No content

post/ruleTemplates/{ruleTemplateName}/detach
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?