A rule as the API takes and gives it.
GET /api/rules answers with a list of them. POST /api/rules, PUT /api/rules/{id} and POST /api/rules/preview read one; there the id counts for nothing, and a rule without enabled is enabled.
GET /api/rules
POST /api/rules
PUT /api/rules/{id}
POST /api/rules/preview
id
enabled
A rule as the API takes and gives it.
GET /api/rulesanswers with a list of them.POST /api/rules,PUT /api/rules/{id}andPOST /api/rules/previewread one; there theidcounts for nothing, and a rule withoutenabledis enabled.