lib/elasticsearch/api/actions/license/post_start_trial.rb in elasticsearch-api-8.10.0 vs lib/elasticsearch/api/actions/license/post_start_trial.rb in elasticsearch-api-8.11.0

- old
+ new

@@ -26,23 +26,25 @@ # # @option arguments [String] :type The type of trial license to generate (default: "trial") # @option arguments [Boolean] :acknowledge whether the user has acknowledged acknowledge messages (default: false) # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.10/start-trial.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/start-trial.html # def post_start_trial(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || "license.post_start_trial" } + arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil method = Elasticsearch::API::HTTP_POST path = "_license/start_trial" params = Utils.process_params(arguments) Elasticsearch::API::Response.new( - perform_request(method, path, params, body, headers) + perform_request(method, path, params, body, headers, request_opts) ) end end end end