Import API - Creates a collection, but doesn't create the API

The import/openapi function in the Postman API works as far as creating a new collection for that API, but it doesnโ€™t actually create the API under the APIs tab.

Here is how it starts:

curl --location --request POST 'https://api.getpostman.com/import/openapi' \
--header 'x-api-key: <my API key>' \
--header 'Content-Type: application/json' \
--data-raw '{
 "type": "json",
"input":{
"openapi": "3.0.1",
"info": {
"title": "ABC.API",
"version": "v1"
},

etc.

This creates a collection called ABC.API.

I am trying to automate the import-from-json process.

Goal: use the Postman API to create the API in Postman, not just the collection.

Thanks

1 Like

Hi GuyLev, did you figure out a solution?

Thanks for asking, @rana035

It is so long ago, I forgot this issue and have not needed to continue working on it.

We can close it.