Corrected to avoid creating 'id' param for all REST functions