diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_contextualai.json b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_contextualai.json new file mode 100644 index 0000000000000..af51faf572cee --- /dev/null +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_contextualai.json @@ -0,0 +1,41 @@ +{ + "inference.put_contextualai": { + "documentation": { + "url": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-contextualai", + "description": "Create an Contextual AI inference endpoint" + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": [ + "application/json" + ], + "content_type": [ + "application/json" + ] + }, + "url": { + "paths": [ + { + "path": "/_inference/{task_type}/{contextualai_inference_id}", + "methods": [ + "PUT" + ], + "parts": { + "task_type": { + "type": "string", + "description": "The task type" + }, + "contextualai_inference_id": { + "type": "string", + "description": "The inference Id" + } + } + } + ] + }, + "body": { + "description": "The inference endpoint's task and service settings" + } + } +}