Skip to main content

Add a new feature flag

POST 

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

Create a new feature flag in a specified project.

Request

Responses

featureSchema

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
curl -L '<your-unleash-url>/api/admin/projects/:projectId/features' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
-d '{
"name": "disable-comments",
"type": "release",
"description": "Controls disabling of the comments section in case of an incident",
"impressionData": false,
"tags": [
{
"value": "a-tag-value",
"type": "simple"
}
]
}'
Request Collapse all
Base URL
<your-unleash-url>
Auth
Parameters
— pathrequired
Body required
{
  "name": "disable-comments",
  "type": "release",
  "description": "Controls disabling of the comments section in case of an incident",
  "impressionData": false,
  "tags": [
    {
      "value": "a-tag-value",
      "type": "simple"
    }
  ]
}
ResponseClear

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