Skip to main content

Update a feature flag

PUT 

<your-unleash-url>/api/admin/projects/:projectId/features/:featureName

Updates the specified feature if the feature belongs to the specified project. Only the provided properties are updated; any feature properties left out of the request body are left untouched.

Request

Responses

featureSchema

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
curl -L -X PUT '<your-unleash-url>/api/admin/projects/:projectId/features/:featureName' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <Authorization>' \
-d '{
"description": "Controls disabling of the comments section in case of an incident",
"type": "kill-switch",
"stale": true,
"archived": true,
"impressionData": false
}'
Request Collapse all
Base URL
<your-unleash-url>
Auth
Parameters
— pathrequired
— pathrequired
Body required
{
  "description": "Controls disabling of the comments section in case of an incident",
  "type": "kill-switch",
  "stale": true,
  "archived": true,
  "impressionData": false
}
ResponseClear

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