I am tring to create Azure devops (tfs) Pipeline by rets API as described here: https://learn.microsoft.com/en-us/rest/api/azure/devops/pipelines/pipelines/create?view=azure-devops-rest-6.0
Request url: https://tfs.xxx/tfs/Projects/xxx/_apis/pipelines?api-version=6.0-preview
Request body:
{
"name": "test",
"configuration": {
"type": "yaml",
"path": "build.yml",
"repository": {
"id":"xxx",
"type":"azureReposGit",
}
}
}
I got error 400 with response:
{"$id":"1","innerException":null,"message":"Value cannot be null.rnParameter name: repositoryName","typeName":"System.ArgumentNullException, mscorlib","typeKey":"ArgumentNullException","errorCode":0,"eventId":0}
I don’t see any parameter called repositoryName in the documentation.
What am i missing?
Thanks!