Create Bulk Redirect Rule via API - 400 error Exceeded maximum number of root rulesets

I am using the API to create a Bulk redirect rule, I have created the List, added items to the list and now want to create the rule which will enable the rules within the list.

If I do a POST request, I get the error task.complete result=Failed;]StatusCodeError: 400 - {“result”:null,“success”:false,“errors”:[{“message”:“exceeded maximum number of root rulesets”}],“messages”:null}

and if I PUT the request with the ID of the ruleset I get an error saying that I have exceeded the max number of rulesets. task.complete result=Failed;]StatusCodeError: 400 - {“result”:null,“success”:false,“errors”:[{“message”:“exceeded maximum number of root rulesets”}],“messages”:null}

Though I have checked and we should not be limited in numbers of rules - I have deleted some from the UI also.

  • SOLVED - Redirect Rules get added to the http_redirect PHASE of an account, I was trying to add to a RuleSet ID URL, and List ID endpoints.

There is one Phase per account for http_redirect, get the rule ID with that phase name and then you can update it and add lists to enable to it.

1 Like