Using Environment Variables in POST Payload
1 answer
Yes, you can do it. You send it this way
{
"some_key" : "{{environment_variable_name}}"
}
So, if in the previous test you installed it with something like
postman.setEnvironmentVariable("id","some_value")
You can use it in your POST with
{
"some_key" : "{{id}}"
}
Hope this answers your question.
+6
source to share