filter template attributes for RESTFul POST/PUT