lib/elasticsearch/api/actions/watcher/activate_watch.rb in elasticsearch-api-8.0.1 vs lib/elasticsearch/api/actions/watcher/activate_watch.rb in elasticsearch-api-8.1.0

- old
+ new

@@ -22,18 +22,19 @@ # Activates a currently inactive watch. # # @option arguments [String] :watch_id Watch ID # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-activate-watch.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.1/watcher-api-activate-watch.html # def activate_watch(arguments = {}) raise ArgumentError, "Required argument 'watch_id' missing" unless arguments[:watch_id] - arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil + + arguments = arguments.clone _watch_id = arguments.delete(:watch_id) method = Elasticsearch::API::HTTP_PUT path = "_watcher/watch/#{Utils.__listify(_watch_id)}/_activate"