Trying to use REST API to create iterations for a project using POST as per this:
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}/{teamId}/_apis/work/teamsettings/iterations?api-version=5.0
{
count: 3,
value: [
{
id: "f95df712-1f2d-4685-86ea-b2e7dbad8353",
name: "Iteration 0",
path: "CMMI2\Iteration 0",
attributes: {
startDate: null,
finishDate: null,
timeFrame: "current"
},
url: "https://dev.azure.com/{organization}/{projectId}/{teamId}/_apis/work/teamsettings/iterations/f95df712-1f2d-4685-86ea-b2e7dbad8353"
},
{
id: "ec4f29f0-0b48-4a52-9b71-45e396654330",
name: "Iteration 1",
path: "CMMI2\Iteration 1",
attributes: {
startDate: null,
finishDate: null,
timeFrame: "future"
},
url: "https://dev.azure.com/{organization}/{projectId}/{teamId}/_apis/work/teamsettings/iterations/ec4f29f0-0b48-4a52-9b71-45e396654330"
},
{
id: "ab3d8626-c613-48ff-9378-f3b7ed109d77",
name: "Iteration 2",
path: "CMMI2\Iteration 2",
attributes: {
startDate: null,
finishDate: null,
timeFrame: "future"
},
url: "https://dev.azure.com/{organization}/{projectId}/{teamId}/_apis/work/teamsettings/iterations/ab3d8626-c613-48ff-9378-f3b7ed109d77"
}
]
}