- Published on
PostMan
- Authors
- Name
- Timothy Blanks
To get an auth token and update the env variable
// response JSON example
// { "ID":"token" }
var res = pm.response.json();
pm.environment.set('envVarName', res.ID);
To get an auth token and update the env variable
// response JSON example
// { "ID":"token" }
var res = pm.response.json();
pm.environment.set('envVarName', res.ID);