Internet Explorer is no longer supported. Many things will still work, but your experience will be degraded and some things won't function. Please use a modern browser such as Edge, Chrome, or Firefox.

Create Task

view on GitHub

Create Task is available as both a pgutil command and an HTTP Request, and will create a new Task in ProGet.

Command Specification (CLI)

The security tasks create command is used to create a new Task.

The --name and --attributes options are always required.

Note: The list of existing attributes can be quickly returned using the pgutil attributes list command.

Creating a task requires the the Task name (e.g. "Basic Feed Access"), attributes (e.g. Feeds_ViewFeed, Feeds_DownloadPackage and Feeds_PullPackage):

pgutil security tasks create --name="Basic Feed Access" --attributes=Feeds_ViewFeed,Feeds_DownloadPackage,Feeds_PullPackage

HTTP Request Specification

To create a new Task account, simply POST to the following URL with an appropriate API Key and a SecurityTask (see SecurityTask.cs) object as the request body.

POST /api/security/tasks/add

HTTP Response Specification

A SecurityTask object will be returned on a successful 200 response and indicates the task has been created. A 403 response indicates a missing, unknown, or unauthorized API Key.