Get a package version for the authenticated user
GET
/user/packages/{package_type}/{package_name}/versions/{package_version_id} https://api.github.com
Gets a specific package version for a package owned by the authenticated user.
OAuth app tokens and personal access tokens (classic) need the read:packages scope to use this endpoint. For more information, see "About permissions for GitHub Packages."
Parameters
path Path Parameters
| Name | Type |
|---|---|
package_type
required
The type of supported package. Packages in GitHub's Gradle registry have the type | "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container" |
package_name
required
The name of the package. | string |
package_version_id
required
Unique identifier of the package version. | number |
Responses
200 application/json
Response
interface PackageVersion {
id: number;
name: string;
url: string;
package_html_url: string;
html_url?: string;
license?: string;
description?: string;
created_at: string;
updated_at: string;
deleted_at?: string;
metadata?: { package_type: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container";container?: { tags: string[]; };docker?: { tag?: string[]; }; };
}
id: number;
name: string;
url: string;
package_html_url: string;
html_url?: string;
license?: string;
description?: string;
created_at: string;
updated_at: string;
deleted_at?: string;
metadata?: { package_type: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container";container?: { tags: string[]; };docker?: { tag?: string[]; }; };
}