批量更新模型对比差异
PUT
/openapi/v0.9/model/api/v1/workspaces/{proj_uuid}/comparators/{task_uuid}/batch-update
es-file-storage
请求参数
Path 参数
proj_uuid
string
必需
task_uuid
string
任务UUID
示例值:
4dbc6ef2-0e3c-4d47-8b32-552a44f573c5
Header 参数
x-user-token
string
必需
默认值:
{{x-user-token}}
X-Request-Id
string
可选
默认值:
{% mock 'uuid' %}
Body 参数application/json
color
string
可选
example: "#ff0000"
description
string
可选
example: "这是一个差异描述"
diff_uuids
array[string]
可选
example: ["4dbc6ef2-0e3c-4d47-8b32-552a44f573c5"]
is_update_all
boolean
可选
example: false
taskUUID
string
可选
example: "4dbc6ef2-0e3c-4d47-8b32-552a44f573c5"
workspace_id
string
可选
example: ws-123
示例
{
"diff_uuids": [],
"color": "#E23C39",
"is_update_all": true
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT '/openapi/v0.9/model/api/v1/workspaces//comparators/4dbc6ef2-0e3c-4d47-8b32-552a44f573c5/batch-update' \
--header 'x-user-token;' \
--header 'X-Request-Id: {% mock '\''uuid'\'' %}' \
--header 'Content-Type: application/json' \
--data-raw '{
"diff_uuids": [],
"color": "#E23C39",
"is_update_all": true
}'
返回响应
🟢200成功
application/json
Body
object (Resp) | null
HTTP响应模板
code
integer
响应码
message
string
响应消息
data
object | null
响应数据
示例
{
"code": 0,
"message": "success",
"data": {}
}
修改于 2025-07-01 03:12:53