cURL
更新模式
| updateMode | 行为 |
|---|---|
OVERWRITE | 覆盖现有标签 |
APPEND | 追加到现有标签 |
- 单次最多 20 个文件,每个文件最多 100 个标签。
- 单个标签 ≤32 字符,所有标签字符长度总和 ≤700。
fileId通过 查询文件列表 获取。
Authorizations
string
header
required
DashScope API Key,在控制台 API Key 页面 获取。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
批量更新多个文件的标签,支持覆盖和追加两种模式
curl -X POST "https://{workspaceId}.cn-beijing.maas.aliyuncs.com/api/v1/connector/dash/batchUpdateFileTag" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"fileInfos": [
{"fileId": "file_abc123", "tags": ["产品", "V2"]},
{"fileId": "file_def456", "tags": ["FAQ"]}
],
"updateMode": "OVERWRITE"
}'{
"code": "Success",
"status_code": 200,
"data": {},
"requestId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}| updateMode | 行为 |
|---|---|
OVERWRITE | 覆盖现有标签 |
APPEND | 追加到现有标签 |
fileId 通过 查询文件列表 获取。DashScope API Key,在控制台 API Key 页面 获取。
curl -X POST "https://{workspaceId}.cn-beijing.maas.aliyuncs.com/api/v1/connector/dash/batchUpdateFileTag" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"fileInfos": [
{"fileId": "file_abc123", "tags": ["产品", "V2"]},
{"fileId": "file_def456", "tags": ["FAQ"]}
],
"updateMode": "OVERWRITE"
}'{
"code": "Success",
"status_code": 200,
"data": {},
"requestId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}