Skip to main content

Toggle the environment with `name` on

POST <your-unleash-url>/api/admin/environments/:name/on

Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API

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

Request

Path Parameters

  • name string required
Responses

This response has no body.

Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API

Request

Base URL
<your-unleash-url>
Security Scheme
apiKey
name — path required
curl / cURL
curl -L -X POST '<your-unleash-url>/api/admin/environments/:name/on' \
-H 'Authorization: <API_KEY_VALUE>'