Skip to content

Commit 4e28346

Browse files
committed
[API] Updates open point in time API, body parameter supported
1 parent 21eb05e commit 4e28346

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/elasticsearch-serverless/api/open_point_in_time.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ module Actions
3838
# If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
3939
# Supports comma-separated values, such as +open,hidden+. Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open.
4040
# @option arguments [Hash] :headers Custom HTTP headers
41+
# @option arguments [Hash] :body request body
4142
#
4243
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/point-in-time-api.html
4344
#
@@ -55,7 +56,7 @@ def open_point_in_time(arguments = {})
5556
arguments = arguments.clone
5657
headers = arguments.delete(:headers) || {}
5758

58-
body = nil
59+
body = arguments.delete(:body)
5960

6061
_index = arguments.delete(:index)
6162

0 commit comments

Comments
 (0)