List all ancestor groups
GET
/api/v4/projects/{id}/groups
Lists all ancestor groups for a specified project.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Query Parameters
Section titled “ Query Parameters ” search
string
Return list of groups matching the search criteria
Example
group skip_groups
Array<integer>
Array of group ids to exclude from list
with_shared
boolean
Include shared groups
shared_visible_only
boolean
Limit to shared groups user has access to
shared_min_access_level
integer
Limit returned shared groups by minimum access level to the project
page
integer
Current page number
Example
1 per_page
integer
Number of items per page
Example
20Responses
Section titled “ Responses ”OK
Media type application/json
object
id
integer format: int64
web_url
string
name
string
avatar_url
string
full_name
string
full_path
string
Example
{ "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"}Bad Request
Unauthenticated
Not found