# Postman api to import environment

**URL:** <https://community.postman.com/t/postman-api-to-import-environment/9801>\
**Category:** Help Hub\
**Created:** [December 27, 2019, 12:06pm UTC](https://community.postman.com/t/postman-api-to-import-environment/9801 "2019-12-27T12:06:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ts639c](https://avatars.discourse-cdn.com/v4/letter/t/ea666f/32.png) [@ts639c](https://community.postman.com/u/ts639c)\
**Post date:** [December 27, 2019, 12:06pm UTC](https://community.postman.com/t/postman-api-to-import-environment/9801/1 "2019-12-27T12:06:30Z")

</div>

is there a way to import to our private workspace new environment files using an api for a CI/CD process?

---

<div class="post-metadata">

**Author:** ![john-paul](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/john-paul/32/919_2.png) [@john-paul](https://community.postman.com/u/john-paul)\
**Post date:** [December 30, 2019, 6:29pm UTC](https://community.postman.com/t/postman-api-to-import-environment/9801/2 "2019-12-30T18:29:15Z")

</div>

@ts639c Yes! The following call will create a new environment via our API:  
[https://docs.api.getpostman.com/?version=latest#152d94ab-a94d-f5fc-c8db-73c61a56f4ce](https://docs.api.getpostman.com/?version=latest#152d94ab-a94d-f5fc-c8db-73c61a56f4ce)

---

<div class="post-metadata">

**Author:** ![ts639c](https://avatars.discourse-cdn.com/v4/letter/t/ea666f/32.png) [@ts639c](https://community.postman.com/u/ts639c)\
**Post date:** [January 1, 2020, 5:35am UTC](https://community.postman.com/t/postman-api-to-import-environment/9801/3 "2020-01-01T05:35:14Z")

</div>

thank you john for your answer.  
the instructions on the link talk about sharing a collection.  
im looking for an API CRUD like for environments only.  
is there a way to do so?

---

<div class="post-metadata">

**Author:** ![john-paul](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/john-paul/32/919_2.png) [@john-paul](https://community.postman.com/u/john-paul)\
**Post date:** [January 2, 2020, 7:52pm UTC](https://community.postman.com/t/postman-api-to-import-environment/9801/4 "2020-01-02T19:52:56Z")

</div>

Hmm, that’s weird this link should take you directly to the create environment request for our api:  
[https://docs.api.getpostman.com/?version=latest#152d94ab-a94d-f5fc-c8db-73c61a56f4ce](https://docs.api.getpostman.com/?version=latest#152d94ab-a94d-f5fc-c8db-73c61a56f4ce)
