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

How to set Release Definition artifacts using Azure DevOps REST API

I'm trying to set a long list of artifacts for one of the Release Definitions. As a start, I'm only adding one artifact. However, even that does not get updated. Below is what I have done so far. What am I doing wrong? $patUser =…
0
votes
1 answer

How can I query for completed releases using Microsoft.VisualStudio.Services.WebApi?

I can retrieve a list of releases on Azure Devops using var releases = await releaseClient.GetReleasesAsync(project: projectName, definitionId: releaseDefinition.Id); The releases all show the Status Active. But in the devops portal I see that some…
Mathias F
  • 15,906
  • 22
  • 89
  • 159
0
votes
1 answer

How to secure a Spring Boot app using Azure AD (oauth2) AND call Devops REST API (secured by Oauth2)

We have an app that uses the Azure Spring Boot Active Directory starter "com.microsoft.azure:azure-active-directory-spring-boot-starter" and Spring Security to secure access to the app. This all works fine. This was done by following these…
PaulNUK
  • 4,774
  • 2
  • 30
  • 58
0
votes
1 answer

What is the right way for using Azure DevOps client libraries with OAuth for long living web sessions?

We have a stateful web application that maintains long living server session for each user (as long as user works with system session is alive) that need to work with Azure DevOps. We are using .NET client libraries. We are keeping VssConnection for…
Leonid K
  • 1
  • 1
0
votes
1 answer

Call a release build from REST api in Azure

I want to call the Azure Devops to create a new release from one of my Release Pipelines. I have been looking for different calls but its either to create the pipeline or build artifacts. Is there a way to call a release pipeline from Azure API?
0
votes
1 answer

Azure Devops 2019 returns NonAuthoritativeInformation when reading user profile image with REST

I need to fetch user profile image from Azure Devops 2019 through REST but it is responding with "NonAuthoritativeInformation" status. I want to know if I am missing something or adding anything wrong in my request header. Code is given…
0
votes
1 answer

Repository level notification setting in azure devops

I have a project in Azure DevOps with two repositories like one is for front end another one for backend application. Both repositories have different developers assigned and their pipeline to build the repo. I want to create a notification…
0
votes
1 answer

Is there a way to find the workitems for a release in Azure DevOps Api 5.1?

I can find a release in Azure DevOps Api 5.1 by a request to https://vsrm.dev.azure.com/mycompany/myproject/_apis/release/releases/myreleaseid?api-version=5.1 How can I get the workitems of that release as shown on the devops portal under Deployment…
Mathias F
  • 15,906
  • 22
  • 89
  • 159
0
votes
1 answer

How do you use OAuth2 authentication for use with DevOps REST services API - service to service?

I'm trying to do a service to service ADO REST call, from my application to ADO, on behalf of the application, not the user logged in to it. Microsoft provide REST APIs to do things like create a release pipeline. See…
PaulNUK
  • 4,774
  • 2
  • 30
  • 58
0
votes
3 answers

In TFS (or ADO) is there an API call to link a Team to an Area Path?

We're automating our TFS Team/Board creation and found that there is an API to create a Team and an API to create an Area Path, but not one to link the two. Basically we're looking for something that acts as the ‘Create an area path with the name of…
0
votes
1 answer

How can I get a List of WorkItems using the DevOps Api with a Particular Flag Value

We have recently ported over to DevOps. I need to use The DevOps API to Get a list of WorkItems which has a particular value in a Custom Field, "Product Version". (which is set on EVERY work item) so we can see which work items are to be included in…
Andrew Humphries
  • 167
  • 3
  • 15
0
votes
1 answer

Azure devops web extension - access service connection in javascript

I'm creating new azure devops web extension, I've created new service connection of generic type (provided username and password). Need to access username and password and make rest api call inside java script file of azure devops web extension. How…
0
votes
1 answer

unable to fetch the code from github to azure pipeline agent(self-hosted)

git -c http.extraheader="AUTHORIZATION: basic " -c http.proxy="https://xxxxx:@xxxxxxxxxxxx.local:8080/" -c http.sslVerify=false fetch --force --tags --prune --progress --no-recurse-submodules origin fatal: unable to access…
0
votes
1 answer

Getting 401 Unauthorized trying to Create or Update Wiki page using Powershell script

I am trying to create a new page in my Wiki from a Build pipeline with the generated release notes. I receive this error in response : Invoke-WebRequest : The remote server returned an error: (401) Unauthorized. I have looked at every resource I…
0
votes
1 answer

Show custom diloag on Azure DevOps in browser upon PR completion

We want to show our developers a user feedback modal dialog (in browser) upon completion of Pull Request in Azure DevOps. I have tried to Google it and have gone through Pull Request Workflow Extensibility documentation but couldn't find anything…
1 2 3
99
100