From the course: Introducing Postman

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Managing variables

Managing variables - Postman Tutorial

From the course: Introducing Postman

Start my 1-month free trial

Managing variables

- [Instructor] One of the main things I like to use environment variables for is capturing object ID's so I don't have to remember them across requests. In order to do that, we must first define the variable. Let's find a board ID and add a board ID variable to manage it. Start by opening the Get Board List request. Send that request as normal. It doesn't matter whether we're authenticated for this exercise. And now copy the first ID value from the response so we can paste it into a variable's current field in a moment. Whenever we want to add or remove variables reset current variable values or update initial variable values we need to return to the Manage Environment's window. Open the Manage Enviroment's window and click the local label to edit the environment. We're notifying a new environment variable. Since this will represent a board ID we'll name it accordingly. Since we've already copied a board ID we can paste it in. Rather than setting the initial value though this time…

Contents