Skip to main content

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

environmentSchema

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
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
}'
Request Collapse all
Base URL
<your-unleash-url>
Auth
Parameters
— pathrequired
Body required
{
  "type": "string",
  "sortOrder": 0
}
ResponseClear

Click the Send API Request button above and see the response here!