Sending Bulk requests in a single HTTP request in Postman API

Hi All,

Could you please let me know if there is any way for sending bulk requests simultaneously in a single request in Postman API .

For example : Suppose I am sending a HTTP request for assigning a user to a group ----

{{url}}/api/v1/groups/{{groupID}}/users/{{userID}}

Here, suppose if I want it to be done for more than one users at a time , what should be done ? Any help would be appreciated. Thanks.

Hi! @anuragkumar7870 ,

You cannot send all the requests at the same point of time unless you put every request in a new tab.

But there is a much better alternative for this. In the Test Script, you can create an array and store all your userIDs in that array. Run a loop, make use of “setNextRequest()” method to point the same request every time you run the loop until all your userIDs are done. This helps you to send the requests approximately at the same time.

Refer this to get an exact idea: https://www.getpostman.com/docs/v6/postman/scripts/branching_and_looping