Add the given rule.
Return all rules added.
Removes all rules matching the provided id.