How to export specific request to file using postman?
To do that you need to leverage the "Collections" feature of Postman. This link could help you: https://learning.getpostman.com/docs/postman/collections/creating_collections/
Here is the way to do it:
- Create a collection (within tab "Collections")
- Execute your request
- Add the request to a collection
- Share your collection as a file
- Click on the "Code" button upright of the request page.
- From the opened window select cURL.
- Copy and share the generated code.
You can use this curl request to import it into Postman.
This discards variables, pre-request scripts, tests... or anything Postman-specific the request has.