OpenSearch/rest-api-spec/api/indices.put_alias.json

37 lines
1.0 KiB
JSON
Raw Normal View History

{
"indices.put_alias": {
"documentation": "http://www.elasticsearch.org/guide/reference/api/admin-indices-aliases/",
"methods": ["PUT"],
"url": {
"path": "/{index}/_alias/{name}",
"paths": ["/{index}/_alias/{name}", "/_alias/{name}", "/{index}/_alias", "/_alias"],
"parts": {
"index": {
"type" : "string",
"required" : true,
"description" : "The name of the index with an alias"
},
"name": {
"type" : "string",
"required" : true,
"description" : "The name of the alias to be created or updated"
}
},
"params": {
"timeout": {
"type" : "time",
"description" : "Explicit timestamp for the document"
},
"master_timeout": {
"type" : "time",
"description" : "Specify timeout for connection to master"
}
}
},
"body": {
2013-06-08 09:34:13 -04:00
"description" : "The settings for the alias, such as `routing` or `filter`",
"required" : false
}
}
}