rule-chain-controller
Create Default Rule Chain
Create rule chain from template, based on the specified name in the request. Creates the rule chain based on the template that is used to create root rule chain.
Available for users with 'TENANT_ADMIN' authority.
post/api/ruleChain/device/default
Request body
Example request
{
"name": "Root Rule Chain"
}Response
OK
Example response
{
"id": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "RULE_CHAIN"
},
"createdTime": 1609459200000,
"tenantId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "TENANT"
},
"name": "Humidity data processing",
"type": "A4B72CCDFF33",
"firstRuleNodeId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "RULE_NODE"
},
"configuration": {},
"additionalInfo": {}
}