Teamsettings - Get

Get a team's settings

GET https://dev.azure.com/{organization}/{project}/{team}/_apis/work/teamsettings?api-version=6.1-preview.1

URI Parameters

Name In Required Type Description
organization
path True
  • string

The name of the Azure DevOps organization.

project
path True
  • string

Project ID or project name

team
path
  • string

Team ID or team name

api-version
query True
  • string

Version of the API to use. This should be set to '6.1-preview.1' to use this version of the api.

Responses

Name Type Description
200 OK

successful operation

Security

oauth2

Type: oauth2
Flow: accessCode
Authorization URL: https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
Token URL: https://app.vssps.visualstudio.com/oauth2/token?client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer

Scopes

Name Description
vso.work Grants the ability to read work items, queries, boards, area and iterations paths, and other work item tracking related metadata. Also grants the ability to execute queries, search work items and to receive notifications about work item events via service hooks.

Examples

Get team settings for a team

Sample Request

GET https://dev.azure.com/fabrikam/fabrikam-fiber/_apis/work/teamsettings?api-version=6.1-preview.1

Sample Response

{
  "backlogIteration": {
    "id": "323b04b6-2fb8-4093-94f4-fbe3bd36a19f",
    "name": "Iteration",
    "path": "",
    "url": "https://dev.azure.com/fabrikam/c1f04a4e-c4e5-4e0d-8096-e5f9fd214bfb/_apis/wit/classificationNodes/Iterations"
  },
  "bugsBehavior": "asRequirements",
  "workingDays": [
    "monday",
    "tuesday",
    "wednesday",
    "thursday",
    "friday"
  ],
  "backlogVisibilities": {
    "Microsoft.EpicCategory": false,
    "Microsoft.FeatureCategory": true,
    "Microsoft.RequirementCategory": true
  },
  "defaultIteration": {
    "id": "a912d62f-3eba-44b9-ab54-aa82af94b1d7",
    "name": "Iteration 1",
    "path": "\\Iteration 1",
    "url": "https://dev.azure.com/fabrikam/c1f04a4e-c4e5-4e0d-8096-e5f9fd214bfb/_apis/wit/classificationNodes/Iterations/Iteration%201"
  },
  "defaultIterationMacro": "@currentIteration",
  "url": "https://dev.azure.com/fabrikam/c1f04a4e-c4e5-4e0d-8096-e5f9fd214bfb/3e9700ae-46cb-4ee3-ad77-3a1b1ae99572/_apis/work/teamsettings",
  "_links": {
    "self": {
      "href": "https://dev.azure.com/fabrikam/c1f04a4e-c4e5-4e0d-8096-e5f9fd214bfb/3e9700ae-46cb-4ee3-ad77-3a1b1ae99572/_apis/work/teamsettings"
    },
    "project": {
      "href": "https://dev.azure.com/fabrikam/_apis/projects/c1f04a4e-c4e5-4e0d-8096-e5f9fd214bfb"
    },
    "team": {
      "href": "https://dev.azure.com/fabrikam/_apis/projects/c1f04a4e-c4e5-4e0d-8096-e5f9fd214bfb/teams/3e9700ae-46cb-4ee3-ad77-3a1b1ae99572"
    },
    "teamIterations": {
      "href": "https://dev.azure.com/fabrikam/c1f04a4e-c4e5-4e0d-8096-e5f9fd214bfb/3e9700ae-46cb-4ee3-ad77-3a1b1ae99572/_apis/work/teamsettings/iterations"
    },
    "teamFieldValues": {
      "href": "https://dev.azure.com/fabrikam/c1f04a4e-c4e5-4e0d-8096-e5f9fd214bfb/3e9700ae-46cb-4ee3-ad77-3a1b1ae99572/_apis/work/teamsettings/teamfieldvalues"
    },
    "classificationNode": [
      {
        "href": "https://dev.azure.com/fabrikam/c1f04a4e-c4e5-4e0d-8096-e5f9fd214bfb/_apis/wit/classificationNodes/Iterations"
      },
      {
        "href": "https://dev.azure.com/fabrikam/c1f04a4e-c4e5-4e0d-8096-e5f9fd214bfb/_apis/wit/classificationNodes/Iterations/Iteration%201"
      }
    ]
  }
}

Definitions

BugsBehavior

Bugs behavior

ReferenceLinks

The class to represent a collection of REST reference links.

TeamIterationAttributes
TeamSetting

Data contract for TeamSettings

TeamSettingsIteration

Represents a shallow ref for a single iteration.

TimeFrame

Time frame of the iteration, such as past, current or future.

BugsBehavior

Bugs behavior

Name Type Description
asRequirements
  • string
asTasks
  • string
off
  • string

The class to represent a collection of REST reference links.

Name Type Description
links
  • object

The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only.

TeamIterationAttributes

Name Type Description
finishDate
  • string

Finish date of the iteration. Date-only, correct unadjusted at midnight in UTC.

startDate
  • string

Start date of the iteration. Date-only, correct unadjusted at midnight in UTC.

timeFrame

Time frame of the iteration, such as past, current or future.

TeamSetting

Data contract for TeamSettings

Name Type Description
_links

Collection of links relevant to resource

backlogIteration

Backlog Iteration

backlogVisibilities
  • object

Information about categories that are visible on the backlog.

bugsBehavior

BugsBehavior (Off, AsTasks, AsRequirements, ...)

defaultIteration

Default Iteration, the iteration used when creating a new work item on the queries page.

defaultIterationMacro
  • string

Default Iteration macro (if any)

url
  • string

Full http link to the resource

workingDays
  • WorkingDays[]

Days that the team is working

TeamSettingsIteration

Represents a shallow ref for a single iteration.

Name Type Description
_links

Collection of links relevant to resource

attributes

Attributes of the iteration such as start and end date.

id
  • string

Id of the iteration.

name
  • string

Name of the iteration.

path
  • string

Relative path of the iteration.

url
  • string

Full http link to the resource

TimeFrame

Time frame of the iteration, such as past, current or future.

Name Type Description
current
  • string
future
  • string
past
  • string