[O] Get all API versions
GET https://api.getpostman.com/apis/{{apiIdOld}}/versions
each time an api is created it will be seeded with a default version named draft
. Here we will get the id so we can delete it after we have added other versions. Otherwise we will get an error.
RESPONSES
status: OK
{"versions":[{"createdAt":"2021-10-25T12:48:25.000Z","updatedAt":"2021-10-27T18:38:15.000Z","id":"ed7843e7-8973-4bd4-8050-8e6b73c06966","name":"1.0.0","summary":"Animal Crossing New Horizons API. From acnhapi.com","stage":"In Production","visibility":"public","createdBy":"1432573","updatedBy":"1432573","repositoryIntegration":null,"lastRevision":null,"api":"448eae82-4ca9-41a5-a440-3bdb488171d4"}]}