更新设备信息
测试环境
http://140.207.166.210:9030/gateway/torch
测试环境
http://140.207.166.210:9030/gateway/torch
POST
/device/update
请求参数
Authorization
在 header 添加参数
Authorization
示例:
Authorization: ********************
Body 参数application/json
sn
string | null
必需
name
string | null
必需
pid
integer | null
可选
companyId
integer | null
可选
groupId
integer | null
可选
userId
integer | null
可选
appGroupId
integer | null
可选
示例
{
"sn": "string",
"name": "string",
"pid": 0,
"companyId": 0,
"groupId": 0,
"userId": 0,
"appGroupId": 0
}
示例代码
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://140.207.166.210:9030/gateway/torch/device/update' \
--header 'Content-Type: application/json' \
--header 'Authorization;' \
--data-raw '{
"sn": "string",
"name": "string",
"pid": 0,
"companyId": 0,
"groupId": 0,
"userId": 0,
"appGroupId": 0
}'
返回响应
🟢200成功
application/json
Body
code
integer
可选
message
string
可选
data
integer
可选
type
integer
可选
示例
{
"code": 0,
"data": 0,
"message": ""
}
修改于 2024-06-26 09:04:52