Introduction
Data in Postman can be a collection, environment and global variables or data dumps. Importing and exporting data is a beneficial feature in the API development workflow. Users can import API specifications, API schemas and data files. Let us see how to perform imports and exports in Postman.
Importing data
We can import files and folders from the local system, raw text, or any code repository in GitHub, Bitbucket, GitLab or Azure. Postman automatically recognises the files it can import from the source provided. After selecting the files to be imported, click on Import.

Collection v1 format is deprecated and no longer supported. Importing a collection in this format will return an error and needs to be converted from v1 to v2. To change the collection format from v1 to v2:
Step 1: Install the Postman Collection Transformer by running the command in any terminal.
sudo npm install -g postman-collection-transformer
Step 2: Run the following command to convert the format. It downloads the target file path in v2 format.
postman-collection-transformer convert -i <path to the input Postman Collection file> -o <path to the downloaded Postman file> -j 1.0.0 -p 2.0.0 -P
Bulk data is imported from code repositories using the Import option discussed before. For importing GitHub repositories, the user must confirm and authorise postmanlabs to access the repositories. In the Import window on Postman, select the files' organisation, repository and branch. BitBucket and GitLab code repositories are also imported the same way.
To import an Azure DevOps repository, a user must enable third-party application access for Postman to be able to connect to the repo. Third-party application access can be enabled under Policies in Organisation settings. Users receive notifications once the import is complete and can view the files on Postman.








