With recent changes introduced in Azure repositories the default branch name will be changed to "main" instead of "master". However Microsoft provided a feature to set the default branch name for the repositories which will be created in the future.
This feature can be easily turn on/off using the web ui. But I need to toggle this feature programmatically (using REST API or CLI) While browsing through the REST API documentation I didn't find a way to achieve this. Is there a way to get this done?
Analyzing the backend API call I found this,
https://dev.azure.com/{organization_name}/{project_id}/_api/_versioncontrol/UpdateRepositoryOption?__v=5&repositoryId=00000000-0000-0000-0000-000000000000
But unable to send the request via postman or curl.

