From the course: Postman Essential Training

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Using environment variables

Using environment variables - Postman Tutorial

From the course: Postman Essential Training

Using environment variables

- [Instructor] In the previous five movies, we created 11 different saved requests that we can use for testing our API. But if we ever decide we want to change the name we're using to add a contact, we'll have to change it in every request where it's being used. We can save a lot of time by using variables instead of hard-coded values. In this video, we'll learn how to create an environment, which is a group of variables, and add variables to the environment. So we are going to click on the environment's tab in the left section of the window and then we're going to click Create Environment. We're going to give our new environment a name let's call it, contact list. And then we will click return and we can see that our new environment has been saved. Now let's take a look at the variable table. We can see that there is a space for the name of the variable and then an initial value, and then the current value. The initial…

Contents