code: public RuleEnvelope updateRule(String ruleId, RuleUpdateInfo ruleInfo) throws ApiException {
          ApiResponse<RuleEnvelope> resp = updateRuleWithHttpInfo(ruleId, ruleInfo);
          return resp.getData();
      }
docs: Update Rule
  Update an existing Rule
  @param ruleId Rule ID. (required)
  @param ruleInfo Rule object that needs to be updated (required)
  @return RuleEnvelope
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body