更新设备 voucher 值✅
POST
/api/v1/device/update/voucher请求参数
Body 参数application/json
device_id
string
设备id
设备id
<= 36 字符
voucher
string | integer | boolean | array | object | number | null
凭证
凭证:建议直接 json 或者 string 格式
示例
{
"device_id": "string",
"voucher": "string"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
data
object
必需
id
string
必需
name
string
必需
voucher
string
必需
tenant_id
string
必需
is_enabled
string
必需
activate_flag
string
必需
created_at
string
必需
update_at
string
必需
device_number
string
必需
product_id
null
必需
parent_id
string
必需
protocol
null
必需
lable
string
必需
location
string
必需
sub_device_addr
string
必需
current_version
string
必需
additional_info
string
必需
protocol_config
string
必需
remark1
string
必需
remark2
string
必需
remark3
string
必需
device_config_id
string
必需
batch_number
string
必需
activate_at
string
必需
is_online
integer
必需
access_way
string
必需
示例
{
"code": 200,
"message": "Create product successfully",
"data": {
"id": "6f9f2328-32d6-f6e2-0daf-7a6bd44a79b5",
"name": "下提计看",
"voucher": "irure dolore dolore ut",
"tenant_id": "2f4306df",
"is_enabled": "",
"activate_flag": "",
"created_at": "2024-03-15T09:11:38.8919772+08:00",
"update_at": "2024-03-15T09:11:38.8919772+08:00",
"device_number": "48",
"product_id": null,
"parent_id": "57",
"protocol": null,
"lable": "in ut",
"location": "culpa sunt Ut dolor ven",
"sub_device_addr": "culpa est dolor a",
"current_version": "eu ex deserunt ",
"additional_info": "{}",
"protocol_config": "{}",
"remark1": "occaecat cillum",
"remark2": "tempor fugiat sit ea",
"remark3": "ad id",
"device_config_id": null,
"batch_number": null,
"activate_at": null,
"is_online": null,
"access_way": null
}
}
最后修改时间: a year ago