import AJAX from 'utils/ajax';

export function createRule(kapacitor, rule) {
  return AJAX({
    method: 'POST',
    url: kapacitor.links.tasks,
    data: rule,
  });
}

@@ -136,12 +136,12 @@
 nks.
-task
+rule
 s,%0A 

Change tasks to rules