rest service to update templates - @Put('/templates/{id}')