Programatically change the request body in Postman
Valentin Despa Valentin Despa
59.5K subscribers
18,806 views
230

 Published On Jul 8, 2021

Mutating the request body in Postman is something that many people need when building complex requests. Until April 2021 it was not possible to change the request body from scripts. Mutating the form-data is not also possible.

The most common use-cases are signing, encrypting, or converting the original body. But it can also be useful for creating complex payloads like dynamically adding properties or setting some random data.

Postman collection with all examples:
https://gist.github.com/vdespa/6ea80f...

Comments in JSON - Regex from Stackoverflow & Postman issue tracker
https://stackoverflow.com/a/62945875/...
https://github.com/postmanlabs/postma...

If this was helpful and you want to support me create more videos like this one, please consider subscribing.
👉    / @vdespa  

--

⭐️ Video contents ⭐️

⌨️ 00:00 - Introduction
⌨️ 01:17 - Changing the JSON body
⌨️ 05:05 - Request body from scratch
⌨️ 08:22 - Encoding the entire body
⌨️ 10:32 - Comments in JSON
⌨️ 13:12 - Conclusion

--

⭐️ 🎓 The complete guide to Postman (online course) ⭐️

Want to learn more about Postman? Check my Postman online course.

Get it at a special price and help support this YouTube channel:

https://vdespa.com/courses/

--

⭐️ 💬 I have a question. ⭐️

I do my best to answer all comments here on YouTube but I cannot make any guarantees.

If you have a question, it is best to ask your question on Discord, on the Postman User Group on Facebook, or on the Postman Community (links below).

If you are asking a question, make sure to include as many details as possible, including screenshots.

If you have purchased the Postman online course, please use the Q&A section or send me a message directly.

Please do not email me or contact me on other channels as I might not be able to answer. Sorry!

--

⭐️ 💡 I have a video idea ⭐️

Do you want me to create a video on a specific topic? Just fill out the form below:

https://forms.gle/uWEzXFQ2viJtZtvZ7

--

⭐️ 📺 Learn Postman on YouTube ⭐️

Collection of video tutorials:

▸ Learn Postman | http://bit.ly/2CFaf70

▸ Postman Crash Course | http://bit.ly/2YwEBBT

▸ Postman Tips & Tricks | http://bit.ly/2JLkXyU

___

⭐️ 📕 Free resources ⭐️

📌 DOWNLOAD the FREE Postman Quick Reference Guide
http://bit.ly/postman-quick-reference-yt

📌 Ask a question on Discord
  / discord  

📌 Join the Postman User Group on Facebook
http://bit.ly/2OutAMZ

📌 Postman community forum (official)
https://community.getpostman.com/

--

⭐️ 📩 Contact & Imprint ⭐️

👉 Follow me on Twitter:
  / vdespa  

👉 Follow me on Medium:
  / vdespa  

👉 Follow me on Facebook:
  / valentin-despa-113038143438826  

👉 Let's connect on LinkedIn:
  / vdespa  

http://vdespa.com/imprint

show more

Share/Embed