packages
List all package files
Lists all package files for a specified package.
get/api/v4/projects/{id}/packages/{package_id}/package_files
Request
- Base URLhttps://gitlab.com
- Authnone declared
Path parameters
idstring required
ID or URL-encoded path of the project
package_idinteger required
ID of a package
Query parameters
pageinteger
Current page number
per_pageinteger
Number of items per page
order_by'id' | 'created_at' | 'file_name'
Return package files ordered by id, created_at or file_name
sort'asc' | 'desc'
Return package files sorted in asc or desc order.
Response
List all package files
Example response
[
{
"id": 225,
"package_id": 4,
"created_at": "2018-11-07T15:25:52.199Z",
"file_name": "my-app-1.5-20181107.152550-1.jar",
"size": 2421,
"file_md5": "58e6a45a629910c6ff99145a688971ac",
"file_sha1": "ebd193463d3915d7e22219f52740056dfd26cbfe",
"file_sha256": "a903393463d3915d7e22219f52740056dfd26cbfeff321b",
"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"
}
}
}
]Changes
No recorded changes to this operation across all 5 revisions of this API.