Creating Boilerplate for Elastic search PUT