Approves access for the authenticated user to a group
Approves access for the authenticated user to a group
Path parameters
-
The ID or URL-encoded path of the group owned by the authenticated user.
-
The userID of the access requester
Query parameters
-
access_level integer
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
, or50
. Default value is30
.
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
}