projects

Share a project with a group

Shares a specified project with a group.

post/api/v4/projects/{id}/share

Request

  • Base URL
    https://gitlab.com
  • Auth
    none declared

Path parameters

idstring required

The ID or URL-encoded path of the project

Request body

group_idinteger required

The ID of a group

group_access10 | 15 | 20 | 25 | 30 | 40 | 50 required

The group access level

expires_atstring date

Share expiration date

member_role_idinteger

The ID of the Member Role to be assigned to the group

Example request

{
  "group_id": 1
}

Response

Share a project with a group

idinteger required
project_idinteger required
group_idinteger required
group_accessinteger required
expires_atstring date required
member_role_idinteger

Example response

{
  "id": 1,
  "project_id": 1,
  "group_id": 1,
  "group_access": 10,
  "expires_at": "2016-09-26",
  "member_role_id": 12
}

Changes

No recorded changes to this operation across all 5 revisions of this API.