postman set environment variable from response body code example
Example 1: postman environment variables in body
{ "customer_id" : "{{cust_id}}" }
Example 2: postman environment variables
pm.environment.set("variable_key", "variable_value");
{ "customer_id" : "{{cust_id}}" }
pm.environment.set("variable_key", "variable_value");