Answers for "Postman Global variable"

1

set postman global variable header

// set postman global variable in header
pm.request.headers.add({key: 'CustomHeader', value: 'CustomValue' });

pm.request.headers.add({key: 'Content-Type', value: 'application/json' });
Posted by: Guest on August-05-2021
0

Postman Global variable

var data = JSON.parse(responseBody); postman.clearGlobalVariable("jwt_token"); postman.setGlobalVariable("jwt_token", data.jwt_token);
Posted by: Guest on May-07-2021

Browse Popular Code Answers by Language