Smart rule managed object.
List of entities or Id of the ManagedObjects.
Gets a list of smart rules for given managed object.
Response wrapped in IResult
Example
const id: string = '1';
(async () => {
const {data, res} = await smartRulesService.listByContext(id);
})();
Entity or Id of the ManagedObject.
Updates smart rule.
Response wrapped in IResult
Example
const rule: IRule = {id: '1', enabledSources: ['2', '3'],...};
(async () => {
const {data, res} = await smartRulesService.updateSmartRule(rule);
})();
Smart rule managed object.
Deactivates smart rule for given entities list.
Returns
Response wrapped in IResult
Example