6

Postman can export whole collections, and also single requests.

I'd like to export just one request, so I can send it as an example to somebody else who can import it in their Postman via (possible Raw Text?):

enter image description here

Normally, I'd use cURL format which is supported even for imports within Postman. But there's also issue #7895 that seems to block this option or to be more precise, it won't import request body, which is exactly what I need at the moment.

When I go into a request in Postman => code, there are many options, but it seems that the only option also suitable for imports is cURL. Postman can't import requests written in a programming/scripting language, so all other options here are out of the question (yes, I've tried HTTP, but that's not a supported format for imports either).

Having said that, is there a way I can import a single request with body data in Postman?

My Postman version is 7.16.0 (x64) for Windows OS.

7
  • 4
    Couldn't you just create a new collection folder and create a copy of the request you need to that folder and share it. – PDHide Jan 20 '20 at 11:06
  • 2
    Exporting collection with one request generates json file, which can be imported by other user. That's the proper way to do it. – Michal Dobrzycki Jan 22 '20 at 13:15
  • 2
    @pavelsaman The issue you mentioned has been fixed in the latest version of the app. – Danny Dainton May 7 '20 at 10:05
  • 1
    @DannyDainton: good news, thank you for letting me know – pavelsaman May 7 '20 at 10:25
  • 1
    @pavelsaman or @ DannyDainton - As you guys stated the issue has been fixed in the latest version. Can any of you answer the question with more details? It would be helpful for others in future. – JAINAM Jul 10 '20 at 5:57
0

There is no direct option to export a single request from Postman.

You can create and export collections. Here is a link to help with that. https://learning.postman.com/docs/getting-started/importing-and-exporting-data/#exporting-collections

Regarding the single request thing, you can try a workaround. I tried with the RAW body parameters and it worked.

What you can do is,

  1. In your request tab, click on the 3 dots in the top right corner of your request panel/box. enter image description here

  2. Select Code. This will open Generate Code Snippents window. enter image description here

  3. Copy the cURL code and save it in a text file. Share this with who you want to. enter image description here

  4. They can then import the request from the text file. enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.