You can back up your Postman Collections to your Bitbucket repository. Once the integration is configured, any changes to your collection in Postman will also appear in your Bitbucket repository.
With Postman v10, you can connect a Bitbucket repository to an API in the API Builder. Once connected, you can sync your API's definition and associated collections between Postman and Bitbucket. You can switch branches, pull changes from the repository, and push changes to the repository, all from within Postman. To learn more about syncing your API with Bitbucket, see API version control overview.
To back up your collections to a Bitbucket repository, do the following:
From the Home page, select Integrations.
Select Browse All Integrations.
Search and select Bitbucket.
Next to Backup a collection, select Add Integration.
Enter your Bitbucket authentication and select Authenticate and Proceed.
App passwords are different from account passwords. Learn how to create an app password in Bitbucket.
Select your collection to back up, the repository you'd like to back it up to, and choose the directory, filename, and branch. Select Add Integration.
Postman often checks your collection for changes. If Postman identifies changes when it checks your collection, the changes automatically commit to your repository in JSON format.
To view your collections in Bitbucket, go to your Bitbucket dashboard > Repositories. Select your repository, then select Commits.
You can select a commit to view your stored collection in JSON format.
You can view your configured integrations on the Browse Integrations page. You can also view integrations that have been configured for a collection by opening the collection and selecting the information icon in the right sidebar. Learn more about viewing or editing integrations.
Last modified: 2023/10/04