功能说明
返回当前项目下的 Batch 任务列表。当前仅支持阿里云 qwen 系列模型。
调用说明
接口约束
请求路径
GET {BASE_URL}/api/v1/batches
请求头
| 名称 |
是否必选 |
示例值 |
描述 |
| Authorization |
是 |
Bearer {token} |
鉴权信息 |
| Content-Type |
否 |
application/json |
请求体格式 |
请求参数
Path 参数
| 名称 |
类型 |
是否必填 |
示例值 |
描述 |
| resourceId |
string |
是 |
r-123456 |
资源 ID |
Query 参数
| 名称 |
类型 |
是否必填 |
示例值 |
描述 |
| after |
string |
否 |
|
无 |
| limit |
integer |
否 |
|
无 |
Body 参数
| 名称 |
类型 |
是否必填 |
示例值 |
描述 |
| name |
string |
是 |
demo-name |
资源名称 |
| description |
string |
否 |
demo description |
资源描述 |
返回结果
返回参数
| 名称 |
类型 |
描述 |
| success |
boolean |
请求是否成功 |
| code |
string |
返回码 |
| message |
string |
返回信息 |
| data |
object |
业务返回数据 |
data 字段说明
| 名称 |
类型 |
描述 |
| id |
string |
资源唯一 ID |
| name |
string |
资源名称 |
| status |
string |
资源状态 |
| createTime |
string |
创建时间 |
请求示例
curl --request GET '{BASE_URL}/api/v1/batches' \
--header 'Authorization: Bearer {token}' \
--header 'Content-Type: application/json' \
--data '{
"name": "demo-name",
"description": "demo description"
}'
返回示例
{
"success": true,
"code": "200",
"message": "successful",
"data": {
"id": "r-123456",
"name": "demo-name",
"status": "RUNNING",
"createTime": "2026-04-10T10:00:00Z"
}
}