lib/elasticsearch/api/actions/license/post_start_trial.rb in elasticsearch-api-8.0.1 vs lib/elasticsearch/api/actions/license/post_start_trial.rb in elasticsearch-api-8.1.0

- old
+ new

@@ -23,16 +23,17 @@ # # @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/master/start-trial.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.1/start-trial.html # def post_start_trial(arguments = {}) - arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil + + arguments = arguments.clone method = Elasticsearch::API::HTTP_POST path = "_license/start_trial" params = Utils.process_params(arguments)