API documentation about pending members (both listing or approval is outdated)

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

I've checked for bugs containing «pending» and regression and only found #473359 so far.

Summary

When querying the api to get pending members or to approve any pending members, I get either 400 or 404 reply :

{
  "error": "user_id is invalid"
}

glab: HTTP 400

or

{
  "error": "404 Not Found"
}

Steps to reproduce

  1. create a top level group
  2. ask a user to join this group
  3. GET /groups/:id/pending_members with the correct api/v4 url or POST /groups/:id/members/approve_all

Example Project

I've tested both on a self managed instance and gitlab.com : https://gitlab.com/test-api-group4

What is the current bug behavior?

Got 40X errors as reply.

What is the expected correct behavior?

User listing or user approval

Relevant logs and/or screenshots

❯ curl --request POST --header "PRIVATE-TOKEN: glpat-***-****************" --url "https://forge.apps.education.fr/api/v4/groups/****/members/approve_all"
{"error":"404 Not Found"}%  

Output of checks

This bug happens on GitLab.com

Edited by 🤖 GitLab Bot 🤖