How to export single API request with body in Postman so it can be imported
Alberto last edited by
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?):
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.
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,