In my project, there is a requirement to create Azure artifacts feed automatically.
For this I used REST API mentioned in this doc: https://docs.microsoft.com/en-us/rest/api/azure/devops/artifacts/feed%20%20management/create%20feed?view=azure-devops-rest-5.0
and used python to create feed.
POST https://feeds.dev.azure.com/{organization}/_apis/packaging/feeds?api-version=5.0-preview.1 It worked fine.
Later I saw that a new version of API was available. It is not easy to change the code every time there is a new API version. So the question is how to identify/use the latest stable working version of API always?