projects

List all ancestor groups

Lists all ancestor groups for a specified project.

get/api/v4/projects/{id}/groups

Request

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

Path parameters

idstring required

The ID or URL-encoded path of the project

Query parameters

searchstring

Return list of groups matching the search criteria

skip_groupsinteger[]

Array of group ids to exclude from list

with_sharedboolean

Include shared groups

shared_visible_onlyboolean

Limit to shared groups user has access to

shared_min_access_level10 | 15 | 20 | 25 | 30 | 40 | 50

Limit returned shared groups by minimum access level to the project

pageinteger

Current page number

per_pageinteger

Number of items per page

Response

List all ancestor groups

idinteger required
web_urlstring required
namestring required
avatar_urlstring required
full_namestring required
full_pathstring required

Example response

[
  {
    "web_url": "http://gitlab.example.com/groups/diaspora",
    "name": "Diaspora",
    "avatar_url": "http://gitlab.example.com/uploads/group/avatar/1/avatar.png",
    "full_name": "Foobar Group",
    "full_path": "foo-bar"
  }
]

Changes

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