新增
POST
{{host}}/api/device_type/add
请求参数
参数名
类型
描述
必填
parent_type_id
int
父类型ID
必填
type_name
string
类型名称
必填
type_code
string
类型代码
必填
commands
object
设备指令集
必填
icon_content
object
图标内容
必填
响应参数
参数名
类型
描述
必填
ret
int
返回码:0-正常,非0-失败
必填
msg
string
返回消息
必填