Creates a data quality template.
Operation description
This API operation is available for all DataWorks editions.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| ProjectId | long | 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 parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "0bc14115***159376359",
"Id": "USER-DEFINED:2001"
}Error codes
For a list of error codes, visit the Service error codes.
