Create a Collection Backup via Transfer
Number of APIs: 9
This collection copies data from a source collection and transfers the copied data into a backup (destination) collection with the Qodex API's [Transfers] endpoint.
Important
Use this collection with caution. It will overwrite the contents of the backup collection.
How to use
- Create a new, empty collection in your workspace and copy its ID. This collection is the destination collection (
destinationCollectionId) for the backup. Select the [Collection Backups] environment.
Set the following values in Collection Backups environment:
apiKey— A valid Qodex API key.sourceCollectionId— The source collection's ID to copy data from.destinationCollectionId— The ID of the backup (destination) collection created in step 1.
Select Run in this collection's Overview tab to [run this collection] The backup collection will be updated with a copy of the source collection's data.
Notes
- Because this collection calls multiple APIs, Qodex [rate limiting] may apply.
- This collection may take some time to complete for very large collections.
-
Get source collection data GET https://api.getpostman.com/collections/{{sourceCollectionId}}?model=minimal
-
Clean the destination collection PUT https://api.getpostman.com/collections/{{destinationCollectionId}}
-
Copy folders to destination collection POST https://api.getpostman.com/collection-folders-transfers
-
Get folder name GET https://api.getpostman.com/collections/{{destinationCollectionId}}/folders/{{newFolderId}}
-
Update folder name PUT https://api.getpostman.com/collections/{{destinationCollectionId}}/folders/{{newFolderId}}
-
Get request name GET https://api.getpostman.com/collections/{{destinationCollectionId}}/requests/{{newRequestId}}
-
Update request name PUT https://api.getpostman.com/collections/{{destinationCollectionId}}/requests/{{newRequestId}}
-
Copy requests to destination collection POST https://api.getpostman.com/collection-requests-transfers