-
Couldn't load subscription status.
- Fork 2.3k
Closed
Labels
Description
Hello,
In public documentation of _clone https://opensearch.org/docs/latest/api-reference/index-apis/clone/, wait_for_completion is presented as accepted parameter in URL. But when is used, an error is thrown:
{
"error" : {
"root_cause" : [
{
"type" : "illegal_argument_exception",
"reason" : "request [/template/_clone/index-2023.05.04] contains unrecognized parameter: [wait_for_completion]"
}
],
"type" : "illegal_argument_exception",
"reason" : "request [/template/_clone/index-2023.05.04] contains unrecognized parameter: [wait_for_completion]"
},
"status" : 400
}
To Reproduce
Run next POST request:
POST /template/_clone/index-2023.05.04?wait_for_completion=true
{
"settings": {
"index.blocks.write": false
}
}
Expected behavior
Index is cloned and request will wait to finish.