Environments
Create, update, delete, enable or disable environments for this Unleash instance.
ποΈ Creates a new environment
Uses the details provided in the payload to create a new environment
ποΈ Get all environments
Retrieves all environments that exist in this Unleash instance.
ποΈ Validates if an environment name exists
Uses the name provided in the body of the request to validate if the given name exists or not
ποΈ Updates an environment by name
Given an environment by name updates the environment with the given payload. Note that `name`, `enabled` and `protected` cannot be changed by this API
ποΈ Deletes an environment by name
Given an existing environment by name, this endpoint will attempt to delete it
ποΈ Get the environment with `name`
Retrieves the environment with `name` if it exists in this Unleash instance
ποΈ Clones an environment
Given an existing environment name and a set of options, this will create a copy of that environment
ποΈ Get the environments available to a project
Gets the environments that are available for this project. An environment is available for a project if enabled in the [project configuration](https://docs.getunleash.io/reference/environments#enable-an-environment)
ποΈ Update environment sort orders
Updates sort orders for the named environments. Environments not specified are unaffected.
ποΈ Toggle the environment with `name` on
Makes it possible to enable this environment for a project. An environment must first be globally enabled using this endpoint before it can be enabled for a project
ποΈ Toggle the environment with `name` off
Removes this environment from the list of available environments for projects to use