Logo
30 Day Challange API Documentation

Environments

Number of APIs: 5


1. Get an environment

GET https://api.getpostman.com/environments/{{environmentId}}

Gets information about an environment.



2. Delete an environment

DELETE https://api.getpostman.com/environments/{{environmentId}}

Deletes an environment.



3. Create an environment

POST https://api.getpostman.com/environments

Creates an environment. Include the following properties in the request body:

  • name — A string that contains the environment's name.

You can also include the following properties:

  • values — An array of objects that contains the following:
    • key — The variable's name.
    • value — The variable's value.
    • enabled — If true, enable the variable.
    • type — The variable's type. One of: secret, default, or any.



4. Update an environment

PUT https://api.getpostman.com/environments/{{environmentId}}

Updates an environment. Include the following properties in the request body:

  • name — A string that contains the environment's name.

You can also include the following optional properties:

  • values — An array of objects that contains the following:
    • key — The variable's name.
    • value — The variable's value.
    • enabled — If true, enable the variable.
    • type — The variable's type. One of: secret, default, or any.



5. Get all environments

GET https://api.getpostman.com/environments

Gets information about all of your [environments]



ENDPOINTS