All Products
Search
Document Center

DataWorks:UpdateDataQualityScan

Last Updated:Jan 12, 2026

Updates a data quality monitor.

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
DescriptionstringNo

Description of the data quality monitor.

Daily data quality scanning of ods tables.
ProjectIdlongNo

The ID of the DataWorks workspace where the data quality monitor resides. You can obtain the workspace ID by calling the ListProjects operation.

101
IdlongNo

The ID of the data quality monitor.

10001
OwnerstringNo

The user ID of the owner of the data quality monitor.

231263586109857423
SpecstringNo

The Spec code of the data quality monitoring content. For more information, see Data quality Spec configuration description.

{ "datasets": [ { "type": "Table", "dataSource": { "name": "odps_first", "envType": "Prod" }, "tables": [ "ods_d_user_info" ], "filter": "pt = $[yyyymmdd-1]" } ], "rules": [ { "assertion": "row_count > 0" }, { "templateId": "SYSTEM:field:null_value:fixed", "pass": "when = 0", "name": "The id cannot be empty.", "severity": "High", "identity": "a-customized-data-quality-rule-uuid" } ] }
Parametersarray<object>No

The definition of execution parameters for the data quality monitor.

objectNo

The parameter information.

ValuestringNo

The parameter value.

smtp.qiye.aliyun.com
NamestringNo

The parameter name.

temp_237669.zip_byBwm_1734661241752
RuntimeResourceobjectNo

The resource group used during the execution of the data quality monitor.

IdstringNo

The ID of the resource group.

20315
CufloatNo

The default number of CUs configured for task running.

0.25
ImagestringNo

The image ID of the task runtime configuration.

i-xxxxxx
ComputeResourceobjectNo

The compute engine used during execution. If it's not specified, the data source connection defined in the Spec will be used.

NamestringNo

The name of the compute engine, which is a unique identifier.

auto_createAlertRule_Finished_1kUTk6
RuntimeobjectNo

Additional settings for the compute engine.

EnginestringNo

The engine type. These settings are only supported for the EMR compute engine.This setting? Valid values:

  • Hive: Hive SQL
  • Spark: Spark SQL
  • Kyuubi
Hive
SparkConfobjectNo

Additional Spark engine parameters. Currently, only the spark.yarn.queue parameter is supported.

spark.yarn.queue=dq_queue
HiveConfobjectNo

Additional Hive engine parameters. Currently, only the mapreduce.job.queuename parameter is supported.

mapreduce.job.queuename=dq_queue
EnvTypestringNo

Workspace environment of the compute engine. Valid values:

  • Prod
  • Dev
Prod
TriggerobjectNo

Trigger settings for the data quality monitor.

TypestringNo

The trigger mode of the data quality monitor. Valid values:

  • ByManual: Manually triggered. Default setting.
  • BySchedule: Triggered by a scheduled task instance.
BySchedule
TaskIdsarrayNo

If the trigger mode is BySchedule, the ID of the scheduling task that triggers the monitor must be configured.

longNo

The scheduling task ID.

30001
Hooksarray<object>No

The hook configuration after the data quality monitor stops.

objectNo

The hook configuration after the data quality monitor stops.

ConditionstringNo

The hook trigger condition. When this condition is met, the hook is triggered. Valid expression format:

Specifies multiple combinations of rule severity levels and rule validation statuses, such as results.any { r -> r.status == 'Fail' && r.rule.severity == 'Normal' || r.status == 'Error' && r.rule.severity == 'High' || r.status == 'Warn' && r.rule.severity == 'High' }. This means the hook is triggered if any executed rule has Fail with Normal severity, Error with High severity, or Warn with High severity. The severity values must match those defined in the Spec. The status values must match those in DataQualityResult.

results.any { r -> r.status == 'Fail' && r.rule.severity == 'Normal' || r.status == 'Error' && r.rule.severity == 'High' || r.status == 'Warn' && r.rule.severity == 'High' }
TypestringNo

The type of the hook. Valid values:

  • BlockTaskInstance: Block the scheduling of the task instance.
BlockTaskInstance
NamestringNo

The name of the data quality monitor.

data_quality_scan_001

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The request ID.

22C97E95-F023-56B5-8852-B1A77A1****
Successboolean

Indicates whether the call was successful.

true

Examples

Sample success responses

JSONformat

{
  "RequestId": "22C97E95-F023-56B5-8852-B1A77A1****",
  "Success": true
}

Error codes

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