Generate a collection from spec
generateCollectionConvert an existing API specification into a Postman collection using its ID, with options for folder structure, naming, and parameters. Returns a polling link to track progress.
Instructions
Creates a collection from the given API specification. The specification must already exist or be created before it can be used to generate a collection. The response contains a polling link to the task status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The generated collection's name. | |
| specId | Yes | The spec's ID. | |
| options | Yes | The advanced creation options and their values. For more details, see Postman's [OpenAPI to Postman Collection Converter OPTIONS documentation](https://github.com/postmanlabs/openapi-to-postman/blob/develop/OPTIONS.md). These properties are case-sensitive. | |
| elementType | Yes | The `collection` element type. |