Skip to content

Commit 978cd47

Browse files
Update rest-api-spec (#5117)
Co-authored-by: pquentin <[email protected]>
1 parent 5acaf38 commit 978cd47

File tree

4 files changed

+57
-12
lines changed

4 files changed

+57
-12
lines changed

output/schema/schema.json

Lines changed: 25 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: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
{
2-
"endpointErrors": {
3-
"bulk": {
4-
"request": [
5-
"Request: missing json spec query parameter 'type'"
6-
],
7-
"response": []
8-
}
9-
},
2+
"endpointErrors": {},
103
"generalErrors": []
114
}

specification/_json_spec/bulk.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@
4646
"type": "time",
4747
"description": "Explicit operation timeout"
4848
},
49-
"type": {
50-
"type": "string",
51-
"description": "Default document type for items which don't provide one"
52-
},
5349
"_source": {
5450
"type": "list",
5551
"description": "True or false to return the _source field or not, or default list of fields to return, can be overridden on each sub-request"
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"transform.set_upgrade_mode": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/transform-set-upgrade-mode.html",
5+
"description": "Sets a cluster wide upgrade_mode setting that prepares transform indices for an upgrade."
6+
},
7+
"stability": "stable",
8+
"visibility": "public",
9+
"headers": {
10+
"accept": ["application/json"]
11+
},
12+
"url": {
13+
"paths": [
14+
{
15+
"path": "/_transform/set_upgrade_mode",
16+
"methods": ["POST"]
17+
}
18+
]
19+
},
20+
"params": {
21+
"enabled": {
22+
"type": "boolean",
23+
"description": "Whether to enable upgrade_mode Transform setting or not. Defaults to false."
24+
},
25+
"timeout": {
26+
"type": "time",
27+
"description": "Controls the time to wait before action times out. Defaults to 30 seconds"
28+
}
29+
}
30+
}
31+
}

0 commit comments

Comments
 (0)