Duplicate a feature flag configuration
POST/feature-flags/:siteCode/:featureKey/duplicate
Duplicate a feature flag configuration with given parameters
Request
Path Parameters
Responses
- 201
- 400
- 403
- 404
- 423
- 500
CREATED
- */*
- Schema
- Example (from schema)
Schema
Array [
Array [
]
Array [
]
Array [
- FeatureRolloutExperimentationRule
- FeatureRolloutProgressiveRule
- FeatureRolloutTargetedRule
Array [
]
Array [
]
Array [
]
- CustomRampUpRollout
- ProgressiveExposure
Array [
]
Array [
]
]
]
Array [
]
Array [
Array [
]
]
Date and time when the feature flag configuration content was last modified
Date and time when the feature flag configuration was created
Date and time when the feature flag configuration was last modified
Description of the feature
environmentConfigurations
object[]
Environment-specific configurations for the feature flag
The date when this environment configuration was last modified
Default variation key to serve in this environment
Possible values: <= 255 characters
Environment key associated with this configuration
Indicates whether the feature flag is enabled in this environment
integrations
object
Integrations associated with the feature flag environment
deliveryRules
object[]
List of integrations enabled for delivery rules
Name of the custom analytics
Integration custom variable
Name of the integration
Possible values: [GOOGLE_ANALYTICS4
, GOOGLE_ANALYTICS4_AUDIENCES
, GOOGLE_UNIVERSAL_ANALYTICS
, ECONDA
, SMART_TAG
, PIANO
, ADOBE_OMNITURE
, EULERIAN
, WEBTRENDS
, KISSMETRICS
, PIWIK
, CRAZY_EGG
, COM_SCORE
, TEALIUM
, YSANCE
, M_PATHY
, SMARTFOCUS
, EMARSYS
, EXPERTSENDER
, TAG_COMMANDER
, CONTENT_SQUARE
, WEBTREKK
, CUSTOM_INTEGRATIONS
, HEAP
, SEGMENT
, MIXPANEL
, CLARITY
, IABTCF
, REDSHIFT
, SMARTLOOK
, MOUSEFLOW
, KLAVIYO
, FULLSTORY
, AMPLITUDE
, SNOWPLOW
, JUNE
, MPARTICLE
, BIGQUERY
, RUDDERSTACK
, SNOWFLAKE
, GLASSBOX
, HUBSPOT
, AIR360
, DATADOG
, QUANTUM_METRIC
, KAMELEOON_TRACKING
, CUSTOM_TRACKING
, VERCEL
, AKAMAI
]
experimentRules
object[]
List of integrations enabled for experimentation rules
Name of the custom analytics
Integration custom variable
Name of the integration
Possible values: [GOOGLE_ANALYTICS4
, GOOGLE_ANALYTICS4_AUDIENCES
, GOOGLE_UNIVERSAL_ANALYTICS
, ECONDA
, SMART_TAG
, PIANO
, ADOBE_OMNITURE
, EULERIAN
, WEBTRENDS
, KISSMETRICS
, PIWIK
, CRAZY_EGG
, COM_SCORE
, TEALIUM
, YSANCE
, M_PATHY
, SMARTFOCUS
, EMARSYS
, EXPERTSENDER
, TAG_COMMANDER
, CONTENT_SQUARE
, WEBTREKK
, CUSTOM_INTEGRATIONS
, HEAP
, SEGMENT
, MIXPANEL
, CLARITY
, IABTCF
, REDSHIFT
, SMARTLOOK
, MOUSEFLOW
, KLAVIYO
, FULLSTORY
, AMPLITUDE
, SNOWPLOW
, JUNE
, MPARTICLE
, BIGQUERY
, RUDDERSTACK
, SNOWFLAKE
, GLASSBOX
, HUBSPOT
, AIR360
, DATADOG
, QUANTUM_METRIC
, KAMELEOON_TRACKING
, CUSTOM_TRACKING
, VERCEL
, AKAMAI
]
rolloutRules
object[]
Rollout rules for this environment
oneOf
Rule which can specify a segment of visitors to be exposed to an experimentation
Type of the rule
Possible values: [PROGRESSIVE_DELIVERY
, TARGETED_DELIVERY
, EXPERIMENTATION
]
Percentage of the traffic exposed to this rule
Possible values: <= 100
Unique identifier of the rule
Enable dynamic allocation for this rule (Multi-Armed Bandit)
Name of the rule
release
object
Release date information about this rule
Rule being applied from this date
Rule being applied to this date
Timezone regarding the release of this rule
Europe/Paris
rollbackConditions
object[]
Conditions for defining rollback
The rollback condition comparison operator
Possible values: [GREATER_THAN
, LESS_THAN
]
The rollback condition criteria
Possible values: [UPLIFT
, DOWNLIFT
, CONVERSION_RATE
]
The rollback condition goal ID
The rollback condition ID
The rollback condition match value
Possible values: >= 0.0001
and <= 100
List of emails of recipients who will be notified when conditions are triggered
The rollback condition target
Possible values: [RULE
, ENVIRONMENT
]
The rollback condition visitors
ID of the segment targeted by this rule
Status of the rule
Possible values: [ACTIVE
, PAUSED
, PLANNED
, OUTDATED
]
trafficAllocations
object[]
Traffic allocation settings for the rule
Percentage of the traffic allocated to this variation
Possible values: <= 100
Internally generated ID of the variation
Key of the variation
Possible values: <= 255 characters
Rule which can specify a segment of visitors to expose progressively
Type of the rule
Possible values: [PROGRESSIVE_DELIVERY
, TARGETED_DELIVERY
, EXPERIMENTATION
]
Current exposition according to rule's configuration
Possible values: <= 100
Unique identifier of the rule
Name of the rule
release
object
Release date information about this rule
Rule being applied from this date
Rule being applied to this date
Timezone regarding the release of this rule
Europe/Paris
rollbackConditions
object[]
Conditions for defining rollback
The rollback condition comparison operator
Possible values: [GREATER_THAN
, LESS_THAN
]
The rollback condition criteria
Possible values: [UPLIFT
, DOWNLIFT
, CONVERSION_RATE
]
The rollback condition goal ID
The rollback condition ID
The rollback condition match value
Possible values: >= 0.0001
and <= 100
List of emails of recipients who will be notified when conditions are triggered
The rollback condition target
Possible values: [RULE
, ENVIRONMENT
]
The rollback condition visitors
rolloutConfiguration
object
oneOf
Custom Ramp-Up rollout configuration
Type of the feature rollout
Possible values: [PROGRESSIVE_EXPOSURE
, CUSTOM_RAMP_UP
]
steps
object[]
required
List of rollout steps
Date time of the step
Exposure of the step
Progressive exposure rollout configuration
Type of the feature rollout
Possible values: [PROGRESSIVE_EXPOSURE
, CUSTOM_RAMP_UP
]
frequency
object
Frequency at which the exposition will evolve
Unit
Possible values: [Nanos
, Micros
, Millis
, Seconds
, Minutes
, Hours
, HalfDays
, Days
, Weeks
, Months
, Years
, Decades
, Centuries
, Millennia
, Eras
, Forever
]
Value
Possible values: >= 1
Increment value in percentage
Possible values: >= 1
and <= 100
percentageRange
object
required
Percentage range for the rollout
Percentage starts at
Possible values: <= 100
Percentage stops at
Possible values: <= 100
Release date time
Id of the segment targeted by this rule
Status of the rule
Possible values: [ACTIVE
, PAUSED
, PLANNED
, OUTDATED
]
Key of the variation to serve to visitors matching this rule
Rule which can specify a segment of visitors to expose
Type of the rule
Possible values: [PROGRESSIVE_DELIVERY
, TARGETED_DELIVERY
, EXPERIMENTATION
]
Percentage of the traffic exposed to this rule
Possible values: <= 100
Unique identifier of the rule
Name of the rule
release
object
Release date information about this rule
Rule being applied from this date
Rule being applied to this date
Timezone regarding the release of this rule
Europe/Paris
rollbackConditions
object[]
Conditions for defining rollback
The rollback condition comparison operator
Possible values: [GREATER_THAN
, LESS_THAN
]
The rollback condition criteria
Possible values: [UPLIFT
, DOWNLIFT
, CONVERSION_RATE
]
The rollback condition goal ID
The rollback condition ID
The rollback condition match value
Possible values: >= 0.0001
and <= 100
List of emails of recipients who will be notified when conditions are triggered
The rollback condition target
Possible values: [RULE
, ENVIRONMENT
]
The rollback condition visitors
ID of the segment targeted by this rule
Status of the rule
Possible values: [ACTIVE
, PAUSED
, PLANNED
, OUTDATED
]
Key of the variation to serve to visitors matching this rule
Key used to identify the feature flag
Health of the feature flag (for temporary ones)
Possible values: [HEALTHY
, STALE
, SMELLY
, PERMANENT
]
System-generated field to uniquely identify a feature flag
Name of the feature flag
Primary goal associated with the feature flag
Secondary goals associated with the feature flag
Unique identifier for a project in the Kameleoon app. This is an optional field to be specified in request params.
List of tags associated with the feature flag. This is an optional field needs to specify in request params.
variables
object[]
Variables associated with the feature flag
Key to identify the variable
Type of the variable
Possible values: [BOOLEAN
, NUMBER
, STRING
, JSON
, JS
, CSS
]
Value of the variable
variations
object[]
Variations associated with the feature flag
Key to identify the variation
Name to identify the variation
Possible values: <= 255 characters
variables
object[]
Set of variables implemented by the variation
Key to identify the variable
Type of the variable
Possible values: [BOOLEAN
, NUMBER
, STRING
, JSON
, JS
, CSS
]
Value of the variable
{
"dateContentModified": "2024-07-29T15:51:28.071Z",
"dateCreated": "2024-07-29T15:51:28.071Z",
"dateModified": "2024-07-29T15:51:28.071Z",
"description": "string",
"environmentConfigurations": [
{
"dateModified": "2024-07-29T15:51:28.071Z",
"defaultVariationKey": "string",
"environmentKey": "string",
"featureEnabled": true,
"integrations": {
"deliveryRules": [
{
"customAnalytics": [
"string"
],
"customVariable": 0,
"integrationName": "GOOGLE_ANALYTICS4"
}
],
"experimentRules": [
{
"customAnalytics": [
"string"
],
"customVariable": 0,
"integrationName": "GOOGLE_ANALYTICS4"
}
]
},
"rolloutRules": [
{},
{},
{}
]
}
],
"featureKey": "string",
"health": "HEALTHY",
"id": 0,
"name": "string",
"primaryGoalId": 0,
"secondaryGoalIds": [
0
],
"siteCode": "string",
"tags": [
"string"
],
"variables": [
{
"key": "string",
"type": "BOOLEAN",
"value": "string"
}
],
"variations": [
{
"key": "string",
"name": "string",
"variables": [
{
"key": "string",
"type": "BOOLEAN",
"value": "string"
}
]
}
]
}
Bad Request
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS
, ERROR
]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}
Forbidden
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS
, ERROR
]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}
Feature flag for provided site code and feature key not found
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS
, ERROR
]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}
Locked
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS
, ERROR
]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}
Internal Server Error
- */*
- Schema
- Example (from schema)
Schema
Possible values: [SUCCESS
, ERROR
]
{
"code": "string",
"impersonator": "string",
"message": "string",
"name": "string",
"status": "SUCCESS",
"sub": "string",
"time": 0,
"timestamp": "2024-07-29T15:51:28.071Z"
}