Approves access for the authenticated user to a project

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

Approves access for the authenticated user to a project

Path parameters

  • id integer | string Required

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

  • user_id integer Required

    The userID of the access requester

Query parameters

  • 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, or 40. Default value is 30.

Responses

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
}