Reputation: 147
I checked the azure devops rest api documentation, couldn't found how to push a zip file using azure devops rest api. Please help with some sample code.
Upvotes: 0
Views: 2212
Reputation: 5182
You can use the REST API Pushes - Create.
POST https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryId}/pushes?api-version=6.0
The request body is as same as adding a binary file. Here is the example.
You need to convert your zip file to binary, then push it.
Upvotes: 1