Azure DevOps Rest API - Unable To Create New Iteration

前端 未结 2 1176
误落风尘
误落风尘 2021-01-27 02:27

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%20it

2条回答
  •  闹比i
    闹比i (楼主)
    2021-01-27 02:47

    To create new iteration, you have to use another urls. You can find them here: Classification Nodes - Create Or Update. Sample of Create iteration:

    POST https://dev.azure.com/fabrikam/Fabrikam-Fiber-Git/_apis/wit/classificationnodes/Iterations?api-version=5.0

    Request Body

    JSON

    {
    "name": "Final Iteration",
    "attributes": {

    "startDate": "2014-10-27T00:00:00Z",

    "finishDate": "2014-10-31T00:00:00Z"

    }

    }

提交回复
热议问题