``` curl -X PUT localhost:9200/customer/external/1?pretty -d '{"name": "John Doe"}' ``` Create alias in 2.2: ``` curl -XPOST 'http://localhost:9200/_aliases' -d '{"actions" : [{ "add" : { "index" : "customer", "alias" : "people" } }]}' ``` Create alias in 5.1: ``` curl -XPOST 'http://localhost:9200/_aliases' -d '{"actions" : [{ "add" : { "index" : "customer", "alias" : "people" } }]}' ```