Project collections

Last Update: 7/14/2017

api-version = 1.0-preview.2

This API is in preview. Learn more

Project collections contain team projects that have source code, work items, and other resources.

If you haven't already, look at the information on getting started with these APIs.

Get a project collection

GET https://{instance}/_apis/projectcollections/{collection}?api-version={version}
Parameter Type Notes
URL
instance string VS Team Services account ({account}.visualstudio.com) or TFS server ({server:port}).
collection string Name or ID of the project collection.
Query
api-version string Version of the API to use.

Sample request

GET https://fabrikam-fiber-inc.visualstudio.com/DefaultCollection/_apis/projectCollections/d81542e4-cdfa-4333-b082-1ae2d6c3ad16?api-version=1.0-preview.2

Sample response

Status code: 200
{
  "id": "d81542e4-cdfa-4333-b082-1ae2d6c3ad16",
  "name": "DefaultCollection",
  "url": "https://fabrikam-fiber-inc.visualstudio.com/_apis/projectCollections/d81542e4-cdfa-4333-b082-1ae2d6c3ad16",
  "state": "Started",
  "_links": {
    "self": {
      "href": "https://fabrikam-fiber-inc.visualstudio.com/_apis/projectCollections/d81542e4-cdfa-4333-b082-1ae2d6c3ad16"
    },
    "web": {
      "href": "https://fabrikam-fiber-inc.visualstudio.com/DefaultCollection"
    }
  }
}

Sample code