All Products
Search
Document Center

DataWorks:CreateDataQualityTemplate

Last Updated:Mar 30, 2026

Creates a data quality template.

Operation description

DataWorks Basic Edition or a higher edition is required.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

ProjectId

integer

No

The project ID.

10000

Spec

string

No

Detailed configuration Spec code of the rule template. For more information, see Data quality Spec configuration description.

{ "assertion": "anomaly detection fro id_not_null_cnt", "id_not_null_cnt": { "query": "SELECT COUNT(*) AS cnt FROM ${tableName} WHERE dt = '$[yyyymmdd-1]';" }, "identity": "819cf1f8-29be-4f94-a9d0-c5c06c0c3d2a" }

Owner

string

No

The owner ID.

1000000000001

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The API request ID, which is generated as a UUID.

0bc14115***159376359

Id

string

The unique identifier of the newly created rule template.

USER-DEFINED:2001

Examples

Success response

JSON format

{
  "RequestId": "0bc14115***159376359",
  "Id": "USER-DEFINED:2001"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.