add /api/groups/quit and update the API docs