How to get value from response and refer in a request in Postman
First I will create a get request as follows.
Request URL: https://reqres.in/api/users?page=2
And again I’ll add a second request as an update user.
Request URL: https://reqres.in/api/users/2
“job”: “zion resident”
Now let’s use environment variables to parameterize the value to be referred.
Here we have given the json path of “Lindsay” as data.first_name. Once I run this,
Now let’s set it as the environment variable.
Here you can see that the value “Lindsay” has been set as an environment variable value.
Now let’s run the second API and fetch the value.
Here also you can see that the value “Lindsay” has been taken properly.