Postman api to import environment

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

@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

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?

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