diff --git a/output/schema/schema.json b/output/schema/schema.json index 01ab848c46..c379438bc7 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -9669,6 +9669,34 @@ } ] }, + { + "availability": { + "stack": { + "stability": "stable", + "visibility": "public" + } + }, + "description": "Configure a custom inference endpoint", + "docUrl": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-custom", + "name": "inference.put_custom", + "request": null, + "requestBodyRequired": false, + "requestMediaType": [ + "application/json" + ], + "response": null, + "responseMediaType": [ + "application/json" + ], + "urls": [ + { + "methods": [ + "PUT" + ], + "path": "/_inference/{task_type}/{custom_inference_id}" + } + ] + }, { "availability": { "serverless": { diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 127b19c115..e895f430af 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -6,12 +6,6 @@ ], "response": [] }, - "esql.async_query_get": { - "request": [ - "Request: query parameter 'format' does not exist in the json spec" - ], - "response": [] - }, "ml.stop_datafeed": { "request": [ "Request: missing json spec query parameter 'allow_no_datafeeds'" diff --git a/specification/_json_spec/esql.async_query_get.json b/specification/_json_spec/esql.async_query_get.json index b2b4b17ccc..f92bce11c9 100644 --- a/specification/_json_spec/esql.async_query_get.json +++ b/specification/_json_spec/esql.async_query_get.json @@ -24,6 +24,10 @@ ] }, "params": { + "format": { + "type": "string", + "description": "a short version of the Accept header, e.g. json, yaml" + }, "wait_for_completion_timeout": { "type": "time", "description": "Specify the time that the request should block waiting for the final response" diff --git a/specification/_json_spec/inference.put_custom.json b/specification/_json_spec/inference.put_custom.json new file mode 100644 index 0000000000..c12108683d --- /dev/null +++ b/specification/_json_spec/inference.put_custom.json @@ -0,0 +1,35 @@ +{ + "inference.put_custom": { + "documentation": { + "url": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-custom", + "description": "Configure a custom inference endpoint" + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"], + "content_type": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_inference/{task_type}/{custom_inference_id}", + "methods": ["PUT"], + "parts": { + "task_type": { + "type": "string", + "description": "The task type" + }, + "custom_inference_id": { + "type": "string", + "description": "The inference Id" + } + } + } + ] + }, + "body": { + "description": "The inference endpoint's task and service settings" + } + } +}