All Products
Search
Document Center

DataWorks:UpdateDataQualityTemplate

Last Updated:Jan 12, 2026

Updates a data quality rule template in a project

Operation description

This API operation is available for all DataWorks editions.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
IdstringNo

The ID of the custom rule template.

USER_DEFINED:2001
ProjectIdlongNo

The project ID.

100001
SpecstringNo

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" }
OwnerstringNo

The account ID of the owner.

95279527****

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

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

0bc14115***159376359
Successboolean

Indicates whether the rule template is updated.

true

Examples

Sample success responses

JSONformat

{
  "RequestId": "0bc14115***159376359",
  "Success": true
}

Error codes

For a list of error codes, visit the Service error codes.