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' });
3
2
var data = JSON.parse(responseBody); postman.clearGlobalVariable("jwt_token"); postman.setGlobalVariable("jwt_token", data.jwt_token);
Thank you!
2
0
Are there any code examples left?
New code examples in category PHP