refactor GroupResource and add http PATCH method