- 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
DELETE
/iotapi/rule/{id}
Rule
请求参数
Path 参数
id
string
规则引擎名称
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request DELETE 'https://prod.iotn2n.com/iotapi/rule/'
返回响应
🟢200Returns operation status
application/json
Body
code
number
可选
data
array[object (Rule) {7}]
可选
actions
array [object {2}]
可选
ctx
object
可选
description
string
可选
示例值:
this is republish action
for
string
触发来源
name
string
规则名称
示例值:
dgiot
rawsql
string
rawsql
示例值:
SELECT
payload.msg as msg
FROM
"t/#"
WHERE
msg = 'hello'
test
string
可选
示例值:
false
示例
{
"code": 0,
"data": [
{
"actions": [
{
"name": "dgiot",
"params": {
"$resource": "resource:bf00440de5",
"payload_tmpl": "${payload}",
"target_qos": 0,
"target_topic": "thing/${productid}/${clientid}/post"
}
}
],
"ctx": {
"clientid": "c_emqx",
"payload": "{\"msg\": \"hello\"}",
"qos": 1,
"topic": "t/a",
"username": "u_emqx"
},
"description": "this is republish action",
"for": "string",
"name": "dgiot",
"rawsql": "SELECT \n payload.msg as msg \n FROM \n \"t/#\" \n WHERE \n msg = 'hello'",
"test": "false"
}
]
}
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🔴500Server Internal error