when I send request to the API below, the response is
Bad Request, the request cannot be fulfilled due to bad syntax.
Why do I get this response?
POST https://{instance}/{collection}/{project}/_apis/git/repositories/{repositoryId}/importRequests?api-version=5.0-preview.1
I used bodies below; (i created endpoint)
a)
{
"parameters":{
"deleteServiceEndpointAfterImportIsDone":true,
"gitSource":{
{
"url":"bitbucketurl",
"overwrite":false
}
},
"tfvcSource":null,
"serviceEndpointId":"{1}"
}
}
b)
{
"deleteServiceEndpointAfterImportIsDone": true,
"parameters": {
"gitSource": {
"url": "bitbucketurl"
},
"tfvcSource": null,
"serviceEndpointId": "01bfbasdadsadasd"
}
}
c) this one is given by azure devops docs.
{
"parameters": {
"gitSource": {
"url": "https://github.com/Microsoft/vsts-agent.git"
}
}
}