Questions tagged [azure-devops-rest-api]

Azure DevOps Services REST API (previously: Visual Studio Team Services REST APIs) is a set of APIs allowing management of Azure DevOps (formerly: Visual Studio Team Services) accounts as well as TFS 2015/2017/2018/2019 servers.

What's your goal? APIs to use:

  • Accounts and Profiles
    • Access user accounts or profiles
  • Build (2.0)
    • Automatically kick off a build
    • Get details from a completed build
    • Add a tag to a build
  • Widgets
    • Add a widget to a dashboard
  • Git
    • Get Git repositories
    • Add status to a commit
    • Get details/status for a pull request
    • Create a file (push)
  • Project and Teams
    • Create a project
    • Get a list of projects
  • Work Item Tracking
    • Get a list of work items
    • Create a work item
    • Update a work item
    • Add a link to a work item

More Information

1869 questions
0
votes
1 answer

ADO API to download the files using change set number

I am trying to download the files related to ADO changeset into a folder. By using below API I am able to retrieve the changeset: GET https://dev.azure.com/{organization}/{project}/_apis/tfvc/changesets/{id}?api-version=5.1 I am writing a PS…
0
votes
1 answer

Get Code Review comments history from TFS 2018

I am using TFS 2018 On Premise. Is there any way to get the list of review comments (like shown in Visual studio) using api or using TFS query.
0
votes
2 answers

How do I get the code reviewer(s) of a build in Azure DevOps pipeline?

Given a build id, how do I get the code reviewer(s) name in azure DevOps pipeline? Assume, the build was off of a master branch - which devs merge their feature branch after code has been reviewed in a pull request. This is the policy and no one…
0
votes
1 answer

Updates a single work item Azure Devops using Asp.net

I am trying to update work item in Azure devops using this API : https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/work%20items/update?view=azure-devops-rest-5.1#update-a-field . But i can't find the way to do this.
0
votes
1 answer

Unable to authenticate against Azure DevOps _apis/distributedtask/variablegroups using PAT

I'm running a simple call to Azure DevOps API using Powershell: $base64AuthInfo = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(("{0}:{1}" -f "{USER}","{PAT}"))) $url =…
Sergey
  • 381
  • 6
  • 24
0
votes
1 answer

Is there a way to get "updated by" for "git.pullrequest.updated" web hook?

See title. Context: My bot is sometimes change a PR in response for updating PR, a need a reliable way to filter out own changes. Is there some more reliable way than parsing "detailedMessage.text" ?
Leotsarev
  • 1,040
  • 7
  • 23
0
votes
2 answers

Azure AD Single session token lifetime Policy Is not working

We have an app which uses the OAuth auth Code grant type. We are trying to restrict session tokens and limiting to 10 minutes however after applying the policy it is not working and users stayed logged in on browsers. Can you please suggest If we…
0
votes
1 answer

Length limit for parameter in TFS API?

I try to get the last builds of some build definitions in my TFS (Team Foundation Server) with: project/_apis/build/builds?definitions=1000,1001&queryOrder=queueTimeDescending&minTime=2020-05-03T00:00:00 This works until the string for…
Konrad
  • 4,329
  • 10
  • 54
  • 88
0
votes
1 answer

getPersonalAccessTokenHandler is not a function when using azure-devops-node-api with ES2015 Modules

I'm attempting to migrate a project that hooks into Azure DevOps to use ES6 module loading with Node 14.1 package.json includes field "type": "module", tsconfig.json includes fields "target": "ES2020", "module": "es2020", "moduleResolution":…
0
votes
1 answer

TFS rest API, bypass gated on create changeset

I have a deprecated C# program that edits a file in TFS on premise source control. I am in the process of porting this to the rest api. With the C# API I used the CheckIn method of the Workspace which allows me to bypass the gated check-in. I…
Don Chambers
  • 3,798
  • 9
  • 33
  • 74
0
votes
1 answer

Azure DevOps Server 2019 Programmatially copy test case error Exception: 'TF237124: Work Item is not ready to save'."

I'm able to copy most test cases with this code (trying to copy shared steps to be part of the test case itself) but this one will not copy but I can not see any error message as to why - could anyone suggest anything else to try. See output from…
0
votes
2 answers

Azure Devops stage wise build information using rest api not available

I am using rest api to gather some information from azure devops. I want to get full build results including every stage. But in the documentation it is not available. The simple build api call only gives me limited data. Is there any way to collect…
0
votes
1 answer

Any possibility to automate the whole Azure pipelines creation using Azure Devops REST API?

I was looking for a solution of creating automation process for creation of pipelines to eliminate all the manual process we do while creating a pipeline in Azure devops portal. Example: If i want to deploy my Python based application and it doesn't…
0
votes
0 answers

VersionControlServer.GetChangesetProperty available filter

The VersionControlServer.GetChangesetProperty allows a filter as the parameter, which - I think - allows me to specify the property I'm trying to get. However, I can't find a list with the available strings. My goal is to get the CheckinNote…
Trexx
  • 95
  • 7
0
votes
1 answer

Azure Devops custom extension and current release context

With Azure Devops Services, I need to get azure devops user id which triggered a release, from task.json. I've got a datasourcebinding with Azure API Management service. This has to get Azure API Management tag based on user id. I've tried different…
1 2 3
99
100