Environments
Updates an environment by name
Enterprise feature
Given an environment by name updates the environment with the given payload. Note that name, enabled and protected cannot be changed by this API
put/api/admin/environments/update/{name}
Request
- Base URLhttps://app.unleash-instance.example.com
- URLhttps://app.unleash-instance.example.com/api/admin/environments/update/{name}
- Auth
- API key in header Authorization
- or HTTP bearer
Path parameters
namestring required
Request body
Example request
{
"requiredApprovals": 3
}Response
environmentSchema
Example response
{
"name": "my-dev-env",
"type": "development",
"enabled": true,
"protected": true,
"sortOrder": 3,
"projectCount": 10,
"apiTokenCount": 6,
"enabledToggleCount": 10,
"requiredApprovals": 3
}Changes
No recorded changes to this operation across all 7 revisions of this API.