tencent cloud

BatchCreateTaskVersionAsync
Last updated: 2025-11-13 20:56:52
BatchCreateTaskVersionAsync
Last updated: 2025-11-13 20:56:52

1. API Description

Domain name for API request: wedata.intl.tencentcloudapi.com.

This API is used to asynchronously create task versions in batches.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: BatchCreateTaskVersionAsync.
Version Yes String Common Params. The value used for this API: 2021-08-20.
Region Yes String Common Params. For more information, please see the list of regions supported by the product. This API only supports: ap-singapore, eu-frankfurt, na-ashburn, na-siliconvalley.
Tasks.N Yes Array of BatchCreateTaskVersionDTO Task information
ProjectId Yes String Project ID
AutoRun No Boolean Specifies whether to run automatically
AlarmWays No String Alert method: email-email; sms-sms; wecom-wecom
AlarmRecipientTypes No String Alarm object: 1. Project Administrator. 2. Task Owner
NeedCheckParentSubmitted No Boolean Whether validation is required to check if the parent task has been submitted to scheduling

3. Output Parameters

Parameter Name Type Description
Data BatchTaskOperateNew Batch Operation Return
Note: This field may return null, indicating that no valid values can be obtained
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Example

Input Example

POST / HTTP/1.1
Host: wedata.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: BatchCreateTaskVersionAsync
<Common request parameters>

{
    "Tasks": [
        {
            "TaskId": "20250227112817430",
            "VersionRemark": "test"
        }
    ],
    "AutoRun": true,
    "AlarmWays": "true",
    "AlarmRecipientTypes": "all",
    "ProjectId": "1470547050521227264"
}

Output Example

{
    "Response": {
        "Data": {
            "JobId": 1
        },
        "RequestId": "2c66cc14-ea0a-4f25-bb2c-3a315bd9b606"
    }
}

Example2 Incorrect Example

Incorrect example

Input Example

POST / HTTP/1.1
Host: wedata.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: BatchCreateTaskVersionAsync
<Common request parameters>

{
    "Tasks": [
        {
            "TaskId": "20230425181533351",
            "VersionRemark": "ces"
        }
    ],
    "AutoRun": true,
    "AlarmWays": "email",
    "AlarmRecipientTypes": "2",
    "ProjectId": "1470561602745229312"
}

Output Example

{
    "Response": {
        "Error": {
            "Code": "FailedOperation",
            "Message": "Operation failed."
        },
        "RequestId": "6218d665-282f-4e43-972a-262dc311618e"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
AuthFailure CAM Signature/Authentication Error.
AuthFailure.SignatureExpire Not logged in or login has expired.
FailedOperation Operation Failure.
InvalidParameter Parameter error.
ResourceNotFound The resource does not exist.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback