Skip to content

Commit 3c8747b

Browse files
committed
[API] Updates inference.update to use PUT
1 parent 023ea46 commit 3c8747b

File tree

1 file changed

+1
-1
lines changed
  • elasticsearch-api/lib/elasticsearch/api/actions/inference

1 file changed

+1
-1
lines changed

elasticsearch-api/lib/elasticsearch/api/actions/inference/update.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def update(arguments = {})
5050

5151
_task_type = arguments.delete(:task_type)
5252

53-
method = Elasticsearch::API::HTTP_POST
53+
method = Elasticsearch::API::HTTP_PUT
5454
path = if _task_type && _inference_id
5555
"_inference/#{Utils.__listify(_task_type)}/#{Utils.__listify(_inference_id)}/_update"
5656
else

0 commit comments

Comments
 (0)