Upgrade Elasticsearch using rest api