Skip to main content
POST
Create a new feature flag configuration

Body

application/json

Request to create a feature flag

featureKey
string
required

Key of the feature flag

Maximum string length: 255
Pattern: ^[a-z0-9_-]{1,255}$
name
string
required

Name of the feature flag

Maximum string length: 100
siteCode
string
required

Unique Id of the website/app for your project in the Kameleoon app

Required string length: 10
attributionWindow
integer<int64>

Attribution window in milliseconds

bucketingKey
Bucketing key custom data dto · object

Bucketing key used for the feature flag

description
string

Description of the feature

Maximum string length: 5000
environmentConfigurations
Environment request · object[]

Environment configurations for the feature flag

primaryGoalId
integer<int32>

Primary goal associated with the feature flag

secondaryGoalIds
integer<int32>[]

Secondary goals associated with the feature flag

tags
string[]

List of tags associated with the feature flag

variables
Variable request · object[]

Variables associated with the feature flag

variations
Variation request · object[]

Variations for the feature flag

Response

Created

Configuration for the feature flag

featureKey
string
required

Key used to identify the feature flag

Required string length: 1 - 255
id
integer<int32>
required
read-only

System-generated unique string of integers to identify a feature flag

name
string
required

Name of the feature flag

Required string length: 1 - 100
siteCode
string
required

Unique Id for the project in the Kameleoon app. This is an optional field to be included as query parameters

Required string length: 1 - 10
archived
boolean
attributionWindow
integer<int64>

Attribution window

bucketingKey
Bucketing key custom data dto · object

Bucketing key used for the feature flag

createdById
integer<int32>
read-only

Created by id

dateContentModified
string<date-time>
read-only

Date and time when the feature flag configuration content was last modified

dateCreated
string<date-time>
read-only

Date and time when the feature flag configuration was created

dateModified
string<date-time>
read-only

Date and time when the feature flag configuration was last modified

description
string

Description of the feature

Maximum string length: 5000
environmentConfigurations
Environment response · object[]

Environment-specific configurations for the feature flag

health
enum<string>
read-only

Health of the feature flag (for temporary ones)

Available options:
PERMANENT,
HEALTHY,
STALE,
SMELLY
primaryGoalId
integer<int32>

Primary goal of the feature flag

secondaryGoalIds
integer<int32>[]

Secondary goals associated with the feature flag

tags
string[]

List of tags associated with the feature flag. This is an optional field to be included as query parameters

teamId
integer<int64>
read-only

Team id

variables
Variable response · object[]

Variables associated with the feature flag

variations
Variation response · object[]

Variations associated with the feature flag