Skip to content
Advertisement

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:

JavaScript

The response for the above url includes:

JavaScript

And treating this Object ID: YYYYYYYYYYYYYYYYYYYYYY as old ObjectID and trying to push a file into path: refs/heads/XXX using below API:

JavaScript

But the response were :

JavaScript

And sure missing a final step & basic as well. Any suggestions pls

Advertisement

Answer

Above error can be eliminated by referring the commit API instead of mentioned API & get the latest commit ID.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement