Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Authomatically set an environment variable from response in postman

const response = pm.response.json();
pm.environment.set('token', response.token);
Source by community.postman.com #
 
PREVIOUS NEXT
Tagged: #Authomatically #set #environment #variable #response #postman
ADD COMMENT
Topic
Name
2+9 =