api call to add a group