ProGet Documentation

Repackaging API

  • Last Modified: 2019-07-17

The Repackaging API offers a simple mechanism for altering metadata stored within packages for feeds that support it.

This API endpoint should be used instead of the Native API Methods when possible, as they are much easier to use and will likely not change.

For security and simplicity, these endpoints require that an API Key is created and passed into each request.

Repackage Package Endpoint

POST /api/repackaging/repackage

Alters the metadata stored within a package, creating a new package in the feed. Of the fields listed in the request body, all fields are required except for groupName and comments.

  • JSON Request
  • URL-Encoded Request

POST /api/repackaging/repackage Content-Type: application/json

Request Body:
{
  "feed": "hdars-integration-feed",
  "packageName": "hdars-package",
  "groupName": "",
  "version": "1000.0.0-RC.1",
  "newVersion": "1000.0.0",
  "comments": "This package was repackaged by BuildMaster HDARS Application"
}
  

POST /api/repackaging/repackage Content-Type: application/x-www-form-urlencoded

Request Body:
feed=hdars-integration-feed&packageName=hdars-package&version=1000.0.0-RC.1&newVersion=1000.0.0&comments=This+package+was+repackaged+by+BuildMaster+HDARS+Application
  

Is this documentation incorrect or incomplete? Help us by contributing!

This documentation is licensed under CC-BY-SA-4.0 and stored in GitHub.

Generated from commit ce197caa on master