[模型管理] 批量设置模型地图显示状态
PUT
/openapi/v0.9/model/api/v1/workspaces/{proj_uuid}/files
es-file-storage
请求参数
Path 参数
proj_uuid
string
必需
Header 参数
x-user-token
string
必需
默认值:
{{x-user-token}}
X-Request-Id
string
可选
默认值:
{% mock 'uuid' %}
Body 参数application/json
ids
array[integer]
必需
example: [1,2,3]
in_uniform_height
boolean
可选
example: true
is_displayed
boolean
可选
example: true
is_distributed
boolean
可选
example: true
model_display_mod
integer
可选
example: 1
restore
boolean
可选
example: true
select_filter
object
选择过滤器
end_time
integer
结束时间
except_ids
array[integer]
排除的文件ID列表
file_all_types
array[string]
文件类型列表
file_tags
array[string]
文件标签列表
get_sub_file
boolean
是否获取子文件
key
string
关键字
parent_id
integer
父文件ID
payload_model_key
array[string]
载荷类型列表
selected_parent_id
integer
选中的父文件ID
share_state
integer
可选
show_on_map
boolean
是否在地图上显示
start_time
integer
开始时间
show_on_map
boolean
可选
example: true
workspaceID
string
可 选
example: ws-123
示例
{
"ids": [
0
],
"in_uniform_height": true,
"is_displayed": true,
"is_distributed": true,
"model_display_mod": 0,
"restore": true,
"select_filter": {
"end_time": 0,
"except_ids": [
0
],
"file_all_types": [
"string"
],
"file_tags": [
"string"
],
"get_sub_file": true,
"key": "string",
"parent_id": 0,
"payload_model_key": [
"string"
],
"selected_parent_id": 0,
"share_state": 0,
"show_on_map": true,
"start_time": 0
},
"show_on_map": true,
"workspaceID": "string"
}
示例代码
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//files' \
--header 'x-user-token;' \
--header 'X-Request-Id: {% mock '\''uuid'\'' %}' \
--header 'Content-Type: application/json' \
--data-raw '{
"ids": [
0
],
"in_uniform_height": true,
"is_displayed": true,
"is_distributed": true,
"model_display_mod": 0,
"restore": true,
"select_filter": {
"end_time": 0,
"except_ids": [
0
],
"file_all_types": [
"string"
],
"file_tags": [
"string"
],
"get_sub_file": true,
"key": "string",
"parent_id": 0,
"payload_model_key": [
"string"
],
"selected_parent_id": 0,
"share_state": 0,
"show_on_map": true,
"start_time": 0
},
"show_on_map": true,
"workspaceID": "string"
}'
返回响应
🟢200成功
application/json
Body
object (Resp) | null
HTTP响应模板
code
integer
响应码
message
string
响应消息
data
object | null
响应数据
示例
{
"code": 0,
"message": "string",
"data": {}
}
修改于 2025-05-13 13:31:45