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:

  • The topic of the video (programmatically changing the request body in Postman)
  • The benefits of programmatically changing the request body in Postman (automate your API testing, improve your efficiency)
  • The target audience (developers, QA engineers, anyone who wants to automate API testing)
  • The key takeaways (how to use variables to store the request body, how to use JavaScript to change the request body, how to programmatically change the request body in Postman)

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

#postman 

Programmatically Change Request Body in Postman
2.15 GEEK