I was trying to automate the task of pushing some files to various folder in a repo. I tried using Rest API provided by azure. When using Pushes Create API for the same, from the docs this is the content in the request body snapshot of request body This is the snapshot of python code that I wrote: The code
Tag: azure-devops-rest-api
while uploading a file into azure devops using Push API, The object ‘”‘ does not exist.’ get displayed “typeName”:”Microsoft.TeamFoundation.Git
I am trying to add a file into respos folder using below API’s: The response for the above url includes: And treating this Object ID: YYYYYYYYYYYYYYYYYYYYYY as old ObjectID and trying to push a file into path: refs/heads/XXX using below API: But the response were : And sure missing a final step & basic as well. Any suggestions pls Answer
Though Create-attachment & Upload attachment API’s are successful, still uploaded file is not visible in azure devops repos branch
After lots lots of struggle, finally framed below code to interact with Azure Devops via REST API but dont see file in Azure Devops- Repos’s Branches. First created a attachment using below API: https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/attachments/create?view=azure-devops-rest-6.0 Later uploaded the attachment using below API: https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/attachments/upload%20chunk?view=azure-devops-rest-6.0 Both the API’s are suucessful but still couldn’t see the file in azure devops-Repos Branches. What am i
TFS 2018 API (4.1 version) – Python : Can’t add an attachment in a result of a run using either 4.1 or 5.1 version
I have managed to send my test results from my automation python script to TFS 2018 by creating a run and adding results to it. Now, I am trying to upload the xml file I produce with the detailed results of the test execution using the Create Test Result Attachment API call . The version of our API is 4.1