Open ZClifton-21 opened 5 years ago
I am also attempting to do this, and would love to be able to remove an annoying manual step in our setup process.
You can make post requests against https://dev.azure.com/$Organization/$ProjectId/_apis/policy/configurations?api-version=3.2 - Check in your Developer Tools to see the data being posted from the web when you modify your policies to get an idea of the Post data you need.
@goflores What work is this tracking? It seems like it's already been answered.
Is there any way to create and mange branch policy other then the Web interface? We would like to be able to control our branches through the API so automation can handle setup and removal for us. https://docs.microsoft.com/en-us/azure/devops/repos/git/branch-policies?view=azure-devops
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.