Why can't I find the API to download universal packages in ADO Artifacts?

Ma, Leah (CW) 21 Reputation points
2024-01-03T08:36:48.2766667+00:00

I used pipeline to upload a universal package in ADO artifacts. Now I need to use API to download this package, but I can't find the API to download universal package.

Under this URL:https://learn.microsoft.com/en-us/rest/api/azure/devops/artifactspackagetypes/universal?view=azure-devops-rest-7.1

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
41,910 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Om Patil 10 Reputation points
    2024-01-03T09:36:05.46+00:00

    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.