Update api route to portgroups