Approves access for the authenticated user to a project
Approves access for the authenticated user to a project
Path parameters
-
The ID or URL-encoded path of the project owned by the authenticated user.
-
The userID of the access requester
Query parameters
-
access_level integer
A valid project access level. 0 = no access , 10 = guest, 20 = reporter, 30 = developer, 40 = Maintainer. Default is 30.'
Values are
0
,10
,20
,30
, or40
. Default value is30
.
PUT
/v4/projects/{id}/access_requests/{user_id}/approve
curl \
-X PUT https://gitlab.com/api/v4/projects/{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
}