Skip to content

Commit 4d15267

Browse files
committed
[XPACK] Update ml.delete_expired_data
1 parent 122c094 commit 4d15267

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

elasticsearch-xpack/lib/elasticsearch/xpack/api/actions/machine_learning/delete_expired_data.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ module Actions
2323
# Deletes expired and unused machine learning data.
2424
#
2525
# @option arguments [Hash] :headers Custom HTTP headers
26+
# @option arguments [Hash] :body deleting expired data parameters
2627
#
2728
# @see https://www.elastic.co/guide/en/elasticsearch/reference/7.8/ml-delete-expired-data.html
2829
#
@@ -35,7 +36,7 @@ def delete_expired_data(arguments = {})
3536
path = "_ml/_delete_expired_data"
3637
params = {}
3738

38-
body = nil
39+
body = arguments[:body]
3940
perform_request(method, path, params, body, headers).body
4041
end
4142
end

0 commit comments

Comments
 (0)