- Product
- Category
- _User
- _Installation
- Evidence
- Rule
- Device
- _Role
- License
- View
- Crond
- ProductTemplet
- Channel
- LogLevel
- Wechat
- Instruct
- App
- METER
- Gb26875
- System
- Log
- Project
- Group
- Data
- Notification
- TOPO
- _Session
- Menu
- Maintenance
- Timescale
- Permission
- Dict
- Decoder
- OPC
- Devicelog
- aliyun
- FFMPEG
- Article
- Basic
- Dlink
- BACnet
- UniApp
更新操作日志
正式环境
https://prod.iotn2n.com
正式环境
https://prod.iotn2n.com
PUT
/iotapi/classes/Log/{id}
Log
请求参数
Path 参数
id
string
更新操作日志的ID
Body 参数application/json
ACL
object
可选
示例值:
{"*":{"read":true,"write":false}}
clientid
string
可选
createdAt
string
可选
devaddr
string
可选
deviceid
string
可选
domain
array
可选
level
string
可选
line
number
可选
mfa
string
可选
msg
string
可选
objectId
string
可选
peername
string
可选
pid
string
可选
productid
string
可选
time
number
可选
topic
string
可选
type
string
可选
updatedAt
string
可选
示例
{
"ACL": {
"*": {
"read": true,
"write": false
}
},
"clientid": "string",
"createdAt": "string",
"devaddr": "string",
"deviceid": "string",
"domain": [
null
],
"level": "string",
"line": 0,
"mfa": "string",
"msg": "string",
"objectId": "string",
"peername": "string",
"pid": "string",
"productid": "string",
"time": 0,
"topic": "string",
"type": "string",
"updatedAt": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://prod.iotn2n.com/iotapi/classes/Log/' \
--header 'Content-Type: application/json' \
--data-raw '{
"ACL": {
"*": {
"read": true,
"write": false
}
},
"clientid": "string",
"createdAt": "string",
"devaddr": "string",
"deviceid": "string",
"domain": [
null
],
"level": "string",
"line": 0,
"mfa": "string",
"msg": "string",
"objectId": "string",
"peername": "string",
"pid": "string",
"productid": "string",
"time": 0,
"topic": "string",
"type": "string",
"updatedAt": "string"
}'
返回响应
🟢200更新成功
application/json
Body
objectId
string
objectId
updatedAt
string <date-time>
更新时间
示例
{
"objectId": "string",
"updatedAt": "2019-08-24T14:15:22Z"
}
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠404object not found
🔴500Server Internal error