azure-devops-rest-api

How to create new build pipeline using Azure DevOps REST API?

梦想与她 提交于 2020-08-14 08:38:28
问题 I'm trying to create new build pipeline through programmatically. I'm looking for Azure DevOps REST API for this action. I didn't get the proper examples for creating the pipeline using REST API. Please advise. 回答1: How to create new build pipeline using Azure DevOps REST API? To create the new build pipeline, we could use the REST API Definitions - Create: POST https://dev.azure.com/{organization}/{project}/_apis/build/definitions?api-version=5.0 But we need provide too much information in

Azure DevOps Rest API - Unable To Create New Iteration

心已入冬 提交于 2020-07-09 15:33:07
问题 Trying to use REST API to create iterations for a project using POST as per this: https://docs.microsoft.com/en-us/rest/api/azure/devops/work/iterations/post%20team%20iteration?view=azure-devops-rest-5.1 However I keep getting a 400 response. Curiously I added one in the UI (Iteration 3) - and when I request the results it does not include the new one. Is there an issue with this not really working properly or am I doing something wrong? https://dev.azure.com/{organization}/{projectId}/

How to add team members in Azure Devops via API? Also Groups API does not work

巧了我就是萌 提交于 2020-06-27 06:05:15
问题 I am new to Azure Devops and currently migrating to it. I want to add team members for my azure project via REST API. I referred the following documentation, but there is no mention of it. 'Teams' API has no functionality to add Members to it, rather only to create a Team with the Team Name of your choice. https://docs.microsoft.com/en-us/rest/api/azure/devops/?view=azure-devops-rest-5.1 I encountered another problem in the Group Entitlements API: https://docs.microsoft.com/en-us/rest/api

How to delete multiple test cases in Azure DevOps

流过昼夜 提交于 2020-06-26 21:17:20
问题 I want to delete multiple test cases in one go in Azure DevOps. Currently, portal only allows to delete one at a time. Is there any way to achieve this using PowerShell script or REST API? 回答1: You can use the Test Cases - Delete Rest API: DELETE https://dev.azure.com/{organization}/{project}/_apis/test/testcases/{id}?api-version=5.0-preview.1 So you can loop the test cases id's and delete them. Example for simple PowerShell script: $url = https://dev.azure.com/testOrg/testProj/_apis/test