You need to know the rulesetID and use the paths:
curl -i -b cookies.txt -X POST "$REST/rulesets/rulegroups/327089/enable"
curl -i -b cookies.txt -X POST "$REST/rulesets/rulegroups/327089/disable"
This allows only to enable a ruleset or rulegroup, not a dedicated rule within a group....
How can I do this.
I have both ids. (ruleset and rule), but I do not find a way to define the right path....
(isn't there any good REST documentation out there?)