Updated on 2025-12-08 GMT+08:00

Setting the Task Batch

Function

Sets the task batch in the batch task management scenario.

  • This API can be called only after the NA tenant permission is granted.

Calling Method

For details, see Calling APIs.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions. For details about the required permissions, see Permissions Policies and Supported Actions.

URI

PUT /v1/{project_id}/voice-training-manage/user/batch

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-App-UserId

No

String

Third-party user ID, which does not allow Chinese characters.

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

batch_name

No

String

Batch name.

job_ids

No

Array of strings

Task IDs.

Response Parameters

Status code: 200

OK

Status code: 400

Table 4 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error description.

Example Requests

POST https://{endpoint}/v1/3f0924078d1b471c884a5383d4dec9fa/voice-training-manage/user/batch

{
  "batch_name" : "First batch.",
  "job_ids" : [ "id1", "id2", "id3" ]
}

Example Responses

None

Status Codes

Status Code

Description

200

OK

400

An exception occurred when setting the task batch.

Error Codes

See Error Codes.