From 3c4237b8bddbc4e3fe62df1297539ceeb4512ced Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20Zolt=C3=A1n=20Szab=C3=B3?= Date: Tue, 18 Mar 2025 16:19:00 +0100 Subject: [PATCH] Adds EIS inference PUT API (#125082) --- .../rest-api-spec/api/inference.put_eis.json | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_eis.json diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_eis.json b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_eis.json new file mode 100644 index 0000000000000..d08a4d3dbd9a6 --- /dev/null +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_eis.json @@ -0,0 +1,35 @@ +{ + "inference.put_eis": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-elastic.html", + "description": "Configure an inference endpoint that uses the Elastic Inference Service (EIS)" + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"], + "content_type": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_inference/{task_type}/{eis_inference_id}", + "methods": ["PUT"], + "parts": { + "task_type": { + "type": "string", + "description": "The task type" + }, + "eis_inference_id": { + "type": "string", + "description": "The inference ID" + } + } + } + ] + }, + "body": { + "description": "The inference endpoint's task and service settings" + } + } + } \ No newline at end of file