v7

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-013764062.2 MB
Features

Add a new feature flag

Create a new feature flag in a specified project.

post/api/admin/projects/{projectId}/features

Path parameters

projectIdstring required

Request body

namestring required

Unique feature name

type'experiment' | 'kill-switch' | 'release' | 'operational' | 'permission' | 'sunset'

The feature flag's type. One of experiment, kill-switch, release, operational, permission, or sunset

descriptionstring nullable

Detailed description of the feature

impressionDataboolean

true if the impression data collection is enabled for the feature, otherwise false.

Example request

{
  "name": "disable-comments",
  "type": "release",
  "description": "Controls disabling of the comments section in case of an incident",
  "tags": [
    {
      "value": "a-tag-value",
      "type": "simple",
      "color": "#FFFFFF"
    }
  ]
}

Response

featureSchema

namestring required

Unique feature name

typestring

Type of the flag e.g. experiment, kill-switch, release, operational, permission

descriptionstring nullable

Detailed description of the feature

archivedboolean

true if the feature is archived

projectstring

Name of the project the feature belongs to

enabledboolean

true if the feature is enabled, otherwise false.

staleboolean

true if the feature is stale based on the age and feature type, otherwise false.

favoriteboolean

true if the feature was favorited, otherwise false.

impressionDataboolean

true if the impression data collection is enabled for the feature, otherwise false.

createdAtstring date-time nullable

The date the feature was created

archivedAtstring date-time nullable

The date the feature was archived

childrenstring[]

The list of child feature names. This is an experimental field and may change.