已挂接设备更新
已测完
POST
/zt/api/v1/data/file/equipment/update
2023-11-09
请求参数
Body 参数application/json
id
string
关联ID
deviceId
string | null
设备ID
deviceName
string | null
设备名称
documentId
string | null
文件ID
documentVersion
integer | null
文件版本
objectId
string | null
可选
urn
string | null
可选
type
string | null
可选
jobType
string | null
可选
location
object
可选
x
number | null
可选
y
number | null
可选
z
number | null
可选
rotation
string | null
可选
示例
{
"id": "string",
"deviceId": "string",
"deviceName": "string",
"documentId": "string",
"documentVersion": 0,
"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/update' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "string",
"deviceId": "string",
"deviceName": "string",
"documentId": "string",
"documentVersion": 0,
"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": {
"message": ""
},
"code": 0,
"msg": ""
}
修改于 2025-03-27 10:15:38