I'm using jest api for connect to elastic Search I'm wonder if there is a way in Jest to add alias to index with existing index name and delete the index in same operation. like this, but via Jest api:
POST /_aliases
{
"actions" : [
{ "add": { "index": "new_index", "alias": "index_1" } },
{ "remove_index": { "index": "index_1" } }
]
}