- discard(废弃)
- demo(模板-参考示例)
- usmile-wx(微信)
- uc(用户统一中心)
- user-web(健康&设备&我的)
- bff-cloud
- iot-sevice(IOT平台)
- cloud-admin(运营后台)
发布产品
PUT
/iot/product/publish
请求参数
Header 参数
TOK
string
可选
默认值:
{{token}}
Body 参数application/json
object {0}
示例
{
"id":33,
"productName": "eS3t$g4",
"authType": 0,
"status": 0,
"remark":"qqqqq"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT '/iot/product/publish' \
--header 'TOK: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"id":33,
"productName": "eS3t$g4",
"authType": 0,
"status": 0,
"remark":"qqqqq"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
id
integer
必需
productKey
string
必需
productName
string
必需
authType
integer
必需
status
integer
必需
remark
string
必需
createTime
integer
必需
updateTime
integer
必需
示例
{
"code": 0,
"message": "string",
"data": {
"id": 0,
"productKey": "string",
"productName": "string",
"authType": 0,
"status": 0,
"remark": "string",
"createTime": 0,
"updateTime": 0
}
}
修改于 2025-02-05 09:36:06