Skip to content

Commit ad1e642

Browse files
Update rest-api-spec (#5032)
Co-authored-by: pquentin <[email protected]>
1 parent a13ed94 commit ad1e642

File tree

4 files changed

+67
-6
lines changed

4 files changed

+67
-6
lines changed

output/schema/schema.json

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@
66
],
77
"response": []
88
},
9-
"esql.async_query_get": {
10-
"request": [
11-
"Request: query parameter 'format' does not exist in the json spec"
12-
],
13-
"response": []
14-
},
159
"ml.stop_datafeed": {
1610
"request": [
1711
"Request: missing json spec query parameter 'allow_no_datafeeds'"

specification/_json_spec/esql.async_query_get.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
]
2525
},
2626
"params": {
27+
"format": {
28+
"type": "string",
29+
"description": "a short version of the Accept header, e.g. json, yaml"
30+
},
2731
"wait_for_completion_timeout": {
2832
"type": "time",
2933
"description": "Specify the time that the request should block waiting for the final response"
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"inference.put_custom": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-custom",
5+
"description": "Configure a custom inference endpoint"
6+
},
7+
"stability": "stable",
8+
"visibility": "public",
9+
"headers": {
10+
"accept": ["application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url": {
14+
"paths": [
15+
{
16+
"path": "/_inference/{task_type}/{custom_inference_id}",
17+
"methods": ["PUT"],
18+
"parts": {
19+
"task_type": {
20+
"type": "string",
21+
"description": "The task type"
22+
},
23+
"custom_inference_id": {
24+
"type": "string",
25+
"description": "The inference Id"
26+
}
27+
}
28+
}
29+
]
30+
},
31+
"body": {
32+
"description": "The inference endpoint's task and service settings"
33+
}
34+
}
35+
}

0 commit comments

Comments
 (0)