Changed the API to append template id and version