Create collection from schema - folder organization

Yo :raised_hand_with_fingers_splayed: I am generating collections from a Swagger json, stored in the “Define” tab in an API. I tested manually and via Postman-API:

POST Create collection from schema
https://api.getpostman.com/apis/{{apiId}}/versions/{{apiVersionId}}/schemas/{{schemaId}}/collections?workspace={{workspaceId}}

Using the Postman-API, the collection is generated in the same way as doing it manually. More precisely: manually without advanced settings.

Is there a way to include advanced settings in the Postman-API call? I would like to use the “Folder organization = Tags” setting, which helps keeping a structure similar to the Swagger used.

cheers, Ziggy

1 Like

Hello,
You can generate a new collection based on Swagger and… Click on “Generate Collection”, when the new screen is displayed click on “Show advanced settings” and look for “Folder organization”, beside it there is a select, next to clicking on the select will display the options “Schema” and “Tag”, once this is done, it generates the collection

Hi, thanks for the reply.

Indeed, that is the manual solution.

I am looking for the same feature via the Postman-API (api.getpostman.com).

Basically, I want to know what the POST request body keys are to get the same result.

1 Like

@cmnazario Same question. Do you plan to include advanced settings feature also at the Postman API level? It would be really needed.