0
0
Postmantesting~5 mins

Duplicating and moving requests in Postman

Choose your learning style9 modes available
Introduction

Duplicating and moving requests helps you organize your tests and reuse them easily without rewriting.

You want to test the same API with slightly different data.
You need to organize requests into different folders for better clarity.
You want to keep a backup of a request before making changes.
You want to create similar requests quickly without starting from scratch.
Syntax
Postman
Right-click on a request > Select 'Duplicate' to copy it.
Drag and drop a request to move it to another folder or collection.
Duplicated requests keep all settings like URL, headers, and body.
Moving requests helps keep your workspace tidy and easy to navigate.
Examples
This creates a copy of the 'Get User' request so you can modify it without changing the original.
Postman
1. Right-click 'Get User' request > Duplicate
2. Rename the new request to 'Get User v2'
This moves the 'Login' request to a different folder to group related requests together.
Postman
Drag 'Login' request from 'Auth' folder to 'User' folder
Sample Program

This example shows how to duplicate a request and organize it into a new folder for filtered queries.

Postman
1. Open Postman.
2. Create a request named 'Fetch Posts' in 'Blog' collection.
3. Right-click 'Fetch Posts' > Duplicate.
4. Rename duplicated request to 'Fetch Posts - Filtered'.
5. Drag 'Fetch Posts - Filtered' into a new folder named 'Filtered Requests'.
OutputSuccess
Important Notes

Duplicating duplicates test scripts but environment variables remain linked.

Moving requests does not affect their functionality, only their location in the workspace.

Summary

Duplicating requests saves time by reusing existing setups.

Moving requests helps keep your workspace organized.

Both actions improve your testing workflow and reduce errors.