Zum Hauptinhalt springen

Create a rule from a template

POST 

/alarm-rule-templates/:alarmRuleTemplateId/rule

Copies the fields of the template into a new rule and stores it. The new rule is unbound and disabled: which objects it watches is exactly what a template cannot know, and an enabled rule without a binding would tick and evaluate nothing, which looks like a working rule and is not one. Bind it and enable it through the rule endpoints afterwards.

The copy is complete and final. The new rule carries no reference to the template, and a later change to the template does not reach it.

Request

Responses

OK