cancel
Showing results for 
Search instead for 
Did you mean: 
itagsupport
Level 9

How to enable/disable an existing rule in a rule set using the REST interface?

Hi all

Is it possible to enable/disable a rule in an existing rule set of a MWG 7.5.x using the REST interface?

I already looked into the description of the REST interface but couldn't figure out an appropriate method to do it.

Thanks for any hint on this.

Tom E.

0 Kudos
2 Replies
eelsasser
Level 15

Re: How to enable/disable an existing rule in a rule set using the REST interface?

You need to know the rulesetID and use the paths:

/rulesets/rulegroups/{ruleSetRestId}/enable

curl -i -b cookies.txt -X POST  "$REST/rulesets/rulegroups/327089/enable"

/rulesets/rulegroups/{ruleSetRestId}/disable

curl -i -b cookies.txt -X POST "$REST/rulesets/rulegroups/327089/disable"

0 Kudos
feickholt
Level 10

Re: How to enable/disable an existing rule in a rule set using the REST interface?

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....

Thanks Frank

(isn't there any good REST documentation out there?)

0 Kudos