更新设备凭证信息
本地
本地
POST
http://127.0.0.1:9999/api/v1/device/update/voucher
设备管理
请求参数
Header 参数
x-token
string
可选
默认值:
{{x-token}}
Body 参数application/json
device_id
string
设备id
<= 36 字符
voucher
string | integer | boolean | array | object | number | null
凭证
示例
{
"device_id": "string",
"voucher": "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 'http://127.0.0.1:9999/api/v1/device/update/voucher' \
--header 'x-token: {{x-token}}' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
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
}
}
修改于 2025-03-24 10:14:27