akatanov-albums
5 years agoNew Contributor
Default version
Hi, Is there some possibility to mark particular version of my API as a default one through registry-api or another API?
- 5 years ago
Hi,
Curently you can not do this with the RegistryAPI, however, we have an existing enhancement request to implement this feature.
Regards,
Marcus James
SmartBear Support
- 5 years ago
This is now possible - you can set the default version by using "PUT /apis/{owner}/{api}/settings/default":
curl -X PUT "https://api.swaggerhub.com/apis/OWNER/API_NAME/settings/default" -H "Authorization: SWAGGERHUB_API_KEY" -H "Content-Type: application/json" -d "{\"version\": \"1.0.0\"}"