Approves access for the authenticated user to a group

PUT /v4/groups/{id}/access_requests/{user_id}/approve

Approves access for the authenticated user to a group

Path parameters

  • id integer | string Required

    The ID or URL-encoded path of the group owned by the authenticated user.

  • user_id integer Required

    The userID of the access requester

Query parameters

  • A valid group access level. 0 = no access , 10 = Guest, 20 = Reporter, 30 = Developer, 40 = Maintainer, 50 = Owner. Default is 30.

    Values are 0, 10, 20, 30, 40, or 50. Default value is 30.

Responses

PUT /v4/groups/{id}/access_requests/{user_id}/approve
curl \
 -X PUT https://gitlab.com/api/v4/groups/{id}/access_requests/{user_id}/approve
Response examples (200)
{
  "id": 1,
  "name": "Raymond Smith",
  "state": "active",
  "username": "raymond_smith",
  "created_at": "2012-10-22T14:13:35Z",
  "access_level": 20
}