code: public ApiResponse<RuleEnvelope> updateRuleWithHttpInfo(String ruleId, RuleUpdateInfo ruleInfo) throws ApiException {
          com.squareup.okhttp.Call call = updateRuleValidateBeforeCall(ruleId, ruleInfo, null, null);
          Type localVarReturnType = new TypeToken<RuleEnvelope>(){}.getType();
          return apiClient.execute(call, localVarReturnType);
      }
docs: Update Rule
  Update an existing Rule
  @param ruleId Rule ID. (required)
  @param ruleInfo Rule object that needs to be updated (required)
  @return ApiResponse&lt;RuleEnvelope&gt;
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body