unomi.rule.create({
metadata: {
id: <string>,
name: <string>,
description: <string>
},
condition: {
parameterValues: {
subConditions: [
{
parameterValues: {
propertyName: <string>,
comparisonOperator: <string>,
<propertyValueInt>: <number>
},
type: <string>
}
],
operator : <string>
},
type: <string>
},
actions: [
{
parameterValues: {
setPropertyName: <string>
setPropertyValue: <string>
},
type: <string>
}
]
}
});
{
success: <boolean>,
status: <number>,
data: <string>
}