Skip to main content

Toggle the environment with `name` off

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

Authorization

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

Removes this environment from the list of available environments for projects to use

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/off' \
-H 'Authorization: <API_KEY_VALUE>'