---
title: "Toggle the environment with `name` on"
method: POST
path: "/api/admin/environments/{name}/on"
tags: ["Environments"]
---

# Toggle the environment with `name` on

`POST /api/admin/environments/{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

## Path parameters

- `name` string, required

## Response `204`

This response has no body.

## Other responses

- `401` — Authorization information is missing or invalid. Provide a valid API token as the `authorization` header, e.g. `authorization:*.*.my-admin-token`.
- `403` — The provided user credentials are valid, but the user does not have the necessary permissions to perform this operation
- `404` — The requested resource was not found.

---

[API](https://skmtc.net/unleash/apis/unleash-api-3.md) · [All operations](https://skmtc.net/unleash/apis/unleash-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/unleash/unleash-api-3/revisions/b2c3116e633e/schema)
