From b60945b5cc813d75ffb3278cf7f700729aa63a38 Mon Sep 17 00:00:00 2001 From: Karel Minarik Date: Mon, 27 May 2013 13:03:22 +0200 Subject: [PATCH] Added the API definition for creating or updating an alias --- rest-api-spec/api/indices.alias.put.json | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/rest-api-spec/api/indices.alias.put.json b/rest-api-spec/api/indices.alias.put.json index da2ed82adf0..9281e586856 100644 --- a/rest-api-spec/api/indices.alias.put.json +++ b/rest-api-spec/api/indices.alias.put.json @@ -1,26 +1,39 @@ { "indices.alias.put": { - "documentation": "", + "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": { "index": { + "type" : "string", + "description" : "The name of the index with an alias" }, "name": { + "type" : "string", + "description" : "The name of the alias to be created or updated" }, "timeout": { + "type" : "time", + "description" : "Explicit timestamp for the document" } } }, "body": { + "description" : "The settings for the alias, such as `routing` or `filter`" } } }