All Products
Search
Document Center

DataWorks:BatchUpdateTasks

Last Updated:Jan 12, 2026

Performs incremental updates on multiple tasks at a time.

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
Tasksarray<object>No

The list of tasks.

TaskobjectNo
IdlongYes

The task ID.

1234
EnvTypestringNo

The project environment.

  • Prod: Production
  • Dev: Development
Prod
NamestringNo

The name.

SQL node
DescriptionstringNo

The description.

test
OwnerstringNo

The account ID of the task owner.

1000
TimeoutintegerNo

The task execution timeout in seconds. The value should be greater than 3600.

3600
RerunModestringNo

The rerun mode. Valid values:

  • AllDenied: The task cannot be rerun.
  • FailureAllowed: The task can be rerun only after it fails.
  • AllAllowed: The task can always be rerun.
AllAllowed
RerunTimesintegerNo

The number of retry attempts. Takes effect when the task is configured to allow reruns.

3
RerunIntervalintegerNo

The retry interval in seconds.

60
TriggerobjectNo

The task trigger configurations.

TypestringNo

The trigger type. Valid values:

  • Scheduler: periodically triggered
  • Manual
Scheduler
RecurrencestringNo

The running mode of the task after it is triggered. This parameter takes effect only if the Type parameter is set to Scheduler. Valid values:

  • Pause
  • Skip
  • Normal
Normal
CronstringNo

The cron expression. Takes effect when type=Scheduler.

00 00 00 * * ?
StartTimestringNo

The time when periodic triggering takes effect. This parameter takes effect only if the Type parameter is set to Scheduler. The value of this parameter is in the yyyy-mm-dd hh:mm:ss format.

1970-01-01 00:00:00
EndTimestringNo

The expiration time of periodic triggering. Takes effect only when type is set to Scheduler. The value of this parameter is in theyyyy-mm-dd hh:mm:ss format.

9999-01-01 00:00:00
RuntimeResourceobjectNo

Runtime environment configurations, such as resource group information.

ResourceGroupIdstringNo

The identifier of the scheduling resource group used in the task runtime configuration.

S_res_group_524258031846018_1684XXXXXXXXX
ImagestringNo

The image ID used in the task runtime configuration.

i-xxxxxx
CustringNo

The default number of compute units (CUs) configured for task running.

0.25
DataSourceobjectNo

Associated data source information.

NamestringNo

The data source name.

odps_test
Tagsarray<object>No

The list of task tags.

TagobjectNo
KeystringYes

The tag key.

key1
ValuestringNo

The tag value.

value1
CommentstringNo

The remarks.

this is a comment

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

22C97E95-F023-56B5-8852-B1A77A17XXXX
SuccessInfoobject

The result of the batch operation, which is in the MAP structure. The task ID serves as a key, and the result serves as a value.

object

The result.

Successboolean

Indicates whether the request was successful.

true
Messagestring

The error message.

The task does not exist.

Examples

Sample success responses

JSONformat

{
  "RequestId": "22C97E95-F023-56B5-8852-B1A77A17XXXX",
  "SuccessInfo": {
    "key": {
      "Success": true,
      "Message": "The task does not exist."
    }
  }
}

Error codes

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

Change history

Change timeSummary of changesOperation
No change history