Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add request parameters for a postman request in pre-script request

I want to add query parameters for my request in postman through the pre-request script. How can I do this?

like image 436
Denise Avatar asked Mar 31 '20 09:03

Denise


1 Answers

Something basic like this could be used in the Collection Pre-request Script:

pm.request.url.query.add({key: 'test', value: '1234'})
like image 92
Danny Dainton Avatar answered Oct 09 '22 00:10

Danny Dainton