I am getteing "Value cannot be null.\r\nParameter name: inputParameters" while trying to create a pipeline using the azure devops REST APIs. o
Can anybody suggest what should be the request body parameters for the API Call.
My Implemetation:
API CALL (POST) : https://dev.azure.com/{org}/{project}/_apis/pipelines?api-version=6.0-preview.1
Request Body:
{
"configuration": [
{
"type": "yaml",
"folder": "./",
"name": "trl-pipeline"
}
]
}
Response:
{
"$id": "1",
"innerException": null,
"message": "Value cannot be null.\r\nParameter name: inputParameters",
"typeName": "System.ArgumentNullException, mscorlib",
"typeKey": "ArgumentNullException",
"errorCode": 0,
"eventId": 0
}
folder
andname
fields should go up a level to be siblings ofconfiguration
. You could also create a pipeline in the UI thenGET
that with an http request and see how it is structured, to verify this. – Tom W