更新-自定义控制
开发中
本地
本地
PUT
http://127.0.0.1:9999/api/v1/device/model/custom/control
请求参数
Header 参数
x-token
string
可选
默认值:
{{x-token}}
Body 参数application/json
object {0}
示例
{
"id": "5a7c539d-f862-8046-b01f-03e9fa1a5a90",
"device_template_id": "d14445d0-8c40-d86e-ff1a-de37705fbf41",
"name": "yanhao test 4 ",
"control_type": "123123",
"description": "asdfasdf",
"content": "asdf",
"enable_status": "enable",
"remark": "123"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'http://127.0.0.1:9999/api/v1/device/model/custom/control' \
--header 'x-token: {{x-token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"id":"5a7c539d-f862-8046-b01f-03e9fa1a5a90",
"device_template_id":"d14445d0-8c40-d86e-ff1a-de37705fbf41",
"name":"yanhao test 4 ",
"control_type":"123123",
"description":"asdfasdf",
"content":"asdf",
"enable_status":"enable",
"remark":"123"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
string
必需
示例
{
"code": 0,
"message": "string",
"data": "string"
}
修改于 2024-08-03 10:37:53