I am trying to upload a file to Visual Studio Team Services using RestAPI from an MVC C# based application. But not able to get the how to upload or add a file or create a folder using api.
Can anyone please let me know what api method do I need to call to perform this action.
As per my understanding the files that we add in Team Services, via api we can call from Version Control Items ( https://www.visualstudio.com/en-us/docs/integrate/api/tfvc/items ), from this api I understand that we can get the item and its metadata. But how to upload an file/folder?
Thanks in Advance!
If you are using Git as source control, you can use this API to add, edit, rename, move, and delete files in a Git repository. You can either make changes in an existing branch or create a new one.
If you are using TFVC as source control, there is no related REST API can achieve for now. However you can use Team Foundation version control commands as a workaround, Checkin command should do the trick.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.