Updates an environment by name
PUT<your-unleash-url>/api/admin/environments/update/: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
Request
Responses
- 200
- 400
- 401
environmentSchema
The request data does not match what we expect.
Authorization information is missing or invalid. Provide a valid API token as the `authorization` header, e.g. `authorization:*.*.my-admin-token`.
Authorization: Authorization
name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X PUT '<your-unleash-url>/api/admin/environments/update/:name' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
-d '{
"type": "string",
"sortOrder": 0
}'
ResponseClear