Skip to content

Commit 31210b6

Browse files
committed
[API] Adds body parameter to ml.start_trained_model_deployment
1 parent 2499a58 commit 31210b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_trained_model_deployment.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ module Actions
3434
# @option arguments [Time] :timeout Controls the amount of time to wait for the model to deploy.
3535
# @option arguments [String] :wait_for The allocation status for which to wait (options: starting, started, fully_allocated)
3636
# @option arguments [Hash] :headers Custom HTTP headers
37+
# @option arguments [Hash] :body The settings for the trained model deployment
3738
#
3839
# @see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/start-trained-model-deployment.html
3940
#
@@ -50,7 +51,7 @@ def start_trained_model_deployment(arguments = {})
5051
arguments = arguments.clone
5152
headers = arguments.delete(:headers) || {}
5253

53-
body = nil
54+
body = arguments.delete(:body)
5455

5556
_model_id = arguments.delete(:model_id)
5657

0 commit comments

Comments
 (0)