I'm trying to find the best way to add and modify rulesets using the MWG REST API. Specifically, I need to add items to a list which may or may not exist, and then either have the rules within an existing ruleset pick up the list change, or otherwise create a new ruleset (including the rules, lists etc).
I can add items to an existing or newly created list, but looking at the documentation the only option that seems to exist for modifying a ruleset is to export it, make changes to the XML and then re-import it. This gets very clumsy, and in the case of a new ruleset there seems to be no good way to generate an ID other than to try something random in the hope it doesn't already exist.
The MWG build I'm using is 22.214.171.124.0-24770.
If there's a better way of doing this I'd be very happy to hear about it.