Download Universal Package API:
You can use the following API endpoint to download a universal package:
bashCopy code
GET https://feeds.dev.azure.com/{organization}/{project}/_apis/packaging/feeds/{feedId}/universalPackages/{packageName}/versions/{packageVersion}/content?api-version=7.1
Replace the following placeholders in the URL:
-
{organization}
: Your Azure DevOps organization name. -
{project}
: Your project name. -
{feedId}
: The ID or name of the feed where the package is located. -
{packageName}
: The name of your universal package. -
{packageVersion}
: The version of the package you want to download.
Example:
bashCopy code
GET https://feeds.dev.azure.com/myorganization/myproject/_apis/packaging/feeds/myfeed/universalPackages/mypackage/versions/1.0.0/content?api-version=7.1
Authentication:
Make sure you include the necessary authentication token in the request headers. You can use a Personal Access Token (PAT) with appropriate permissions for authentication.
Permissions:
Ensure that the user or service account associated with the PAT has the necessary permissions to read packages in the specified feed.
Note:
The URLs and API versions are subject to change, so it's recommended to refer to the official Microsoft documentation for the latest information.
If you encounter any issues or need more details, consider checking the Azure DevOps REST API documentation for updates or reaching out to Azure DevOps support.