List all packages for a group
GET
/api/v4/groups/{id}/packages
Lists all packages for a specified group. When accessed without authentication, only packages of public projects are returned. By default, packages with default, deprecated, and error status are returned. Use the status parameter to view other packages.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Query Parameters
Section titled “ Query Parameters ” exclude_subgroups
boolean
Determines if subgroups should be excluded
page
integer
Current page number
Example
1 per_page
integer
Number of items per page
Example
20 order_by
string
Return packages ordered by created_at, name, version or type fields.
sort
string
Return packages sorted in asc or desc order.
package_type
string
Return packages of a certain type
package_name
string
Return packages with this name
package_version
string
Return packages with this version
include_versionless
boolean
Returns packages without a version
status
string
Return packages with specified status
Responses
Section titled “ Responses ”OK
Media type application/json
object
id
integer format: int64
name
string
conan_package_name
string
version
string
package_type
string
status
string
_links
string
created_at
string format: date-time
last_downloaded_at
string format: date-time
creator_id
ID of the user who created the package
integer format: int64
project_id
integer format: int64
project_path
string
tags
string
pipeline
object
id
integer format: int64
iid
integer
project_id
integer format: int64
sha
string
ref
string
status
string
source
string
created_at
string format: date-time
updated_at
string format: date-time
web_url
string
user
object
id
integer format: int64
username
string
public_email
string
name
string
state
string
locked
boolean
avatar_url
string
avatar_path
string
custom_attributes
Array<object>
object
key
string
value
string
web_url
string
pipelines
object
id
integer format: int64
iid
integer
project_id
integer format: int64
sha
string
ref
string
status
string
source
string
created_at
string format: date-time
updated_at
string format: date-time
web_url
string
user
object
id
integer format: int64
username
string
public_email
string
name
string
state
string
locked
boolean
avatar_url
string
avatar_path
string
custom_attributes
Array<object>
object
key
string
value
string
web_url
string
versions
object
id
string
version
string
created_at
string
tags
string
pipeline
object
id
integer format: int64
iid
integer
project_id
integer format: int64
sha
string
ref
string
status
string
source
string
created_at
string format: date-time
updated_at
string format: date-time
web_url
string
user
object
id
integer format: int64
username
string
public_email
string
name
string
state
string
locked
boolean
avatar_url
string
avatar_path
string
custom_attributes
Array<object>
object
key
string
value
string
web_url
string
Example
{ "id": 1, "name": "@foo/bar", "version": "1.0.3", "package_type": "npm", "status": "default", "created_at": "2022-09-16T12:47:31.949Z", "last_downloaded_at": "2022-09-19T11:32:35.169Z", "creator_id": 1, "project_id": 2, "project_path": "gitlab/foo/bar", "pipeline": { "id": 1, "iid": 2, "project_id": 3, "sha": "0ec9e58fdfca6cdd6652c083c9edb53abc0bad52", "ref": "feature-branch", "status": "success", "source": "push", "created_at": "2022-10-21T16:49:48.000+02:00", "updated_at": "2022-10-21T16:49:48.000+02:00", "web_url": "https://gitlab.example.com/gitlab-org/gitlab-foss/-/pipelines/61", "user": { "id": 1, "username": "admin", "public_email": "john@example.com", "name": "Administrator", "state": "active", "avatar_url": "https://gravatar.com/avatar/1", "avatar_path": "/user/avatar/28/The-Big-Lebowski-400-400.png", "custom_attributes": [ { "key": "foo", "value": "bar" } ], "web_url": "https://gitlab.example.com/root" } }, "pipelines": { "id": 1, "iid": 2, "project_id": 3, "sha": "0ec9e58fdfca6cdd6652c083c9edb53abc0bad52", "ref": "feature-branch", "status": "success", "source": "push", "created_at": "2022-10-21T16:49:48.000+02:00", "updated_at": "2022-10-21T16:49:48.000+02:00", "web_url": "https://gitlab.example.com/gitlab-org/gitlab-foss/-/pipelines/61", "user": { "id": 1, "username": "admin", "public_email": "john@example.com", "name": "Administrator", "state": "active", "avatar_url": "https://gravatar.com/avatar/1", "avatar_path": "/user/avatar/28/The-Big-Lebowski-400-400.png", "custom_attributes": [ { "key": "foo", "value": "bar" } ], "web_url": "https://gitlab.example.com/root" } }, "versions": { "pipeline": { "id": 1, "iid": 2, "project_id": 3, "sha": "0ec9e58fdfca6cdd6652c083c9edb53abc0bad52", "ref": "feature-branch", "status": "success", "source": "push", "created_at": "2022-10-21T16:49:48.000+02:00", "updated_at": "2022-10-21T16:49:48.000+02:00", "web_url": "https://gitlab.example.com/gitlab-org/gitlab-foss/-/pipelines/61", "user": { "id": 1, "username": "admin", "public_email": "john@example.com", "name": "Administrator", "state": "active", "avatar_url": "https://gravatar.com/avatar/1", "avatar_path": "/user/avatar/28/The-Big-Lebowski-400-400.png", "custom_attributes": [ { "key": "foo", "value": "bar" } ], "web_url": "https://gitlab.example.com/root" } } }}Bad Request
Unauthorized
Group Not Found