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

  1. Create a new, empty collection in your workspace and copy its ID. This collection is the destination collection (destinationCollectionId) for the backup.
  2. Select the [Collection Backups] environment.

  3. Set the following values in Collection Backups environment:

    1. apiKey — A valid Qodex API key.
    2. sourceCollectionId — The source collection's ID to copy data from.
    3. destinationCollectionId — The ID of the backup (destination) collection created in step 1.
  4. 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.
  1. Get source collection data GET https://api.getpostman.com/collections/{{sourceCollectionId}}?model=minimal

  2. Clean the destination collection PUT https://api.getpostman.com/collections/{{destinationCollectionId}}

  3. Copy folders to destination collection POST https://api.getpostman.com/collection-folders-transfers

  4. Get folder name GET https://api.getpostman.com/collections/{{destinationCollectionId}}/folders/{{newFolderId}}

  5. Update folder name PUT https://api.getpostman.com/collections/{{destinationCollectionId}}/folders/{{newFolderId}}

  6. Get request name GET https://api.getpostman.com/collections/{{destinationCollectionId}}/requests/{{newRequestId}}

  7. Update request name PUT https://api.getpostman.com/collections/{{destinationCollectionId}}/requests/{{newRequestId}}

  8. End GET https://postman-echo.com/get

  9. Copy requests to destination collection POST https://api.getpostman.com/collection-requests-transfers