updated the API to include the indexTemplates param for cluster.reroute