- 说明
- 获取token
- 获取token
- 设备树
- 设备类
- ai云端算法配置
- 云端系统算法集
- 算法数据统计
- 人员
- 部门
- 告警回调
- 录像管理
- 端侧算法
- 智慧云店
设备编辑
POST
/openApi/device/iotDevice/edit
请求参数
Body 参数application/json
id
string | null
设备id
nodeId
string | null
节点id
deviceName
string | null
设备名称
deviceUsername
string | null
设备账号
<= 64 字符
devicePassword
string | null
设备密码
<= 64 字符
示例
{
"id": "string",
"nodeId": "string",
"deviceName": "string",
"deviceUsername": "string",
"devicePassword": "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 'https://bcloud.jftechws.com/openApi/device/iotDevice/edit' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "string",
"nodeId": "string",
"deviceName": "string",
"deviceUsername": "string",
"devicePassword": "string"
}'
返回响应
🟢200成功
application/json
Body
success
boolean | null
可选
msg
string | null
可选
code
string | null
可选
model
boolean | null
可选
attributes
string | null
可选
示例
{
"success": false,
"msg": "",
"code": "",
"model": false,
"attributes": ""
}