- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to Create an Environment in Postman?
We can create an Environment in Postman. An Environment is a group of variables that we can use in a Postman request. By creating Environments for production, testing, staging and so on, we can run the same URL in various Environments.
Step1 − Click on the eye icon beside the No Environment dropdown and then click on the Add link within the Environment section.
Step2 − MANAGE ENVIRONMENTS pop-up opens up. We will enter the Environment name. Here, we have added the variable u and the value as https://jsonplaceholder.typicode.com/users. Then close the pop-up.
Step3 − The new Environment (ENV1) displays as one of the items in the No Environment dropdown.
Step4 − Choose the ENV1 environment and add {{u}} in the address bar. To keep an Environment variable in a request we have to enclose it with double curly braces {{<Environment variable name>}}.
Step5 − Click on Send. This Environment variable is used instead of the actual URL(https://jsonplaceholder.typicode.com/users).
- Related Articles
- How to Use Environment Variables in Postman?
- What is an Environment Variable in Postman?
- How to get the value of environment variable in Postman?
- How to create sessions in Postman?
- How to create a mock server in Postman?
- How to create a Global Variable in Postman?
- How to create a PUT request in Postman?
- How to create a DELETE request in Postman?
- How to create a POST request in Postman?
- How to create and save a collection in Postman?
- How to create a virtual environment in Python?
- Tips to Create a Successful Hybrid Environment
- How to Import Collection in Postman?
- How to Monitor Collections in Postman?
- How to use Sessions in Postman?
