Skip to content

Commit f21d143

Browse files
committed
[XPACK] Updates create data stream
1 parent e8f397b commit f21d143

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

elasticsearch-xpack/lib/elasticsearch/xpack/api/actions/indices/create_data_stream.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@ module XPack
2020
module API
2121
module Indices
2222
module Actions
23-
# Creates or updates a data stream
23+
# Creates a data stream
2424
#
2525
# @option arguments [String] :name The name of the data stream
2626
# @option arguments [Hash] :headers Custom HTTP headers
27-
# @option arguments [Hash] :body The data stream definition
2827
#
2928
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.x/data-streams.html
3029
#
@@ -41,7 +40,7 @@ def create_data_stream(arguments = {})
4140
path = "_data_stream/#{Elasticsearch::API::Utils.__listify(_name)}"
4241
params = {}
4342

44-
body = arguments[:body]
43+
body = nil
4544
perform_request(method, path, params, body, headers).body
4645
end
4746
end

0 commit comments

Comments
 (0)