移除子设备✅
PUT
/api/v1/device/sub-remove将子设备的parent_id设置为NULL
请求参数
Body 参数application/json
sub_device_id
string
子设备id
<= 36 字符
示例
{
"sub_device_id": "ca33926c-5ee5-3e9f-147e-94e188fde65b"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
示例
{
"code": 200,
"message": "Remove sub device successfully"
}
最后修改时间: 10 个月前