In this video, we will show you how to programmatically change the request body in Postman. We will cover everything from using variables to storing the request body to using JavaScript to change the request body. By the end of the video, you will be able to programmatically change the request body in Postman and automate your API testing.
The description includes the following information:
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/6ea80ff4c9a77b5de1a19cc4f3198623
--
⭐️ 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