设备挂接到文件
已测完
POST
/zt/api/v1/data/file/equipment/mount
2023-11-09
请求参数
Body 参数application/json
documentId
string
文件ID
documentVersion
integer
文件版本
deviceList
array [object {8}] | null
设备列表
deviceId
string | null
设备ID
deviceName
string | null
设备名称
objectId
string | null
文件存储ID
urn
string | null
可选
type
string | null
可选
jobType
string | null
可选
location
object
设备位置
rotation
string | null
角度
示例
{
"documentId": "string",
"documentVersion": 0,
"deviceList": [
{
"deviceId": "string",
"deviceName": "string",
"objectId": "string",
"urn": "string",
"type": "string",
"jobType": "string",
"location": {
"x": 0,
"y": 0,
"z": 0
},
"rotation": "string"
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/zt/api/v1/data/file/equipment/mount' \
--header 'Content-Type: application/json' \
--data-raw '{
"documentId": "string",
"documentVersion": 0,
"deviceList": [
{
"deviceId": "string",
"deviceName": "string",
"objectId": "string",
"urn": "string",
"type": "string",
"jobType": "string",
"location": {
"x": 0,
"y": 0,
"z": 0
},
"rotation": "string"
}
]
}'
返回响应
🟢200成功
application/json
Body
data
object
可选
message
string | null
挂接结果
code
integer | null
可选
msg
string | null
可选
示例
{
"data": {
"id": "b233309c32414d0f954fb9fe1589fefe",
"deviceId": "g87cbe1k8ki1",
"deviceName": "散热器1.bfa",
"objectId": "string",
"location": {
"x": 0,
"y": 0,
"z": 100000000000000000000
},
"rotation": "99999999999999999999",
"urn": "urn:bimbox.object:king_ifc/20230811165656000084",
"jobType": "33",
"type": "2"
},
"code": 0,
"msg": "成功"
}
修改于 2025-03-27 10:15:01