Add groupsum endpoint