Updated API (/api/groups)