Modified client for the new restful paths, and added exception for blank template id.