code: public JSONObject batchRules(List<JSONObject> rules, boolean forwardToReplicas, boolean clearExistingRules) throws AlgoliaException {
      return this.batchRules(rules, forwardToReplicas, clearExistingRules, RequestOptions.empty);
    }
docs: Add or Replace a list of synonyms
  
  @param rules              the list of rules to add/replace
  @param forwardToReplicas  Forward this operation to the replica indices
  @param clearExistingRules Replace the existing query rules with this batch