Export feature flags from an environment
Exports all features listed in the features property from the environment specified in the request body. If set to true, the downloadFile property will let you download a file with the exported data. Otherwise, the export data is returned directly as JSON. Refer to the documentation for more information about Unleash's export functionality.
Request body
Example request
{
"environment": "development",
"downloadFile": true,
"features": [
"MyAwesomeFeature"
]
}Response
exportResultSchema
Example response
{
"features": [
{
"name": "my-feature",
"description": "best feature ever",
"type": "release",
"project": "default",
"stale": false,
"impressionData": false,
"archived": false
}
],
"featureStrategies": [
{
"name": "flexibleRollout",
"id": "924974d7-8003-43ee-87eb-c5f887c06fd1",
"featureName": "my-feature",
"title": "Rollout 50%",
"parameters": {
"groupId": "default",
"rollout": "50",
"stickiness": "random"
},
"constraints": [],
"disabled": false,
"segments": [
1
]
}
],
"featureEnvironments": [
{
"enabled": true,
"featureName": "my-feature",
"environment": "development",
"variants": [
{
"name": "a",
"weight": 500,
"overrides": [],
"stickiness": "random",
"weightType": "variable"
},
{
"name": "b",
"weight": 500,
"overrides": [],
"stickiness": "random",
"weightType": "variable"
}
],
"name": "variant-testing"
}
],
"contextFields": [
{
"name": "appName",
"description": "Allows you to constrain on application name",
"stickiness": false,
"sortOrder": 2,
"legalValues": []
}
],
"featureTags": [
{
"featureName": "my-feature",
"tagType": "simple",
"tagValue": "user-facing"
}
],
"segments": [
{
"id": 1,
"name": "new-segment-name"
}
],
"tagTypes": [
{
"name": "simple",
"description": "Used to simplify filtering of features",
"icon": "#"
}
],
"dependencies": [
{
"feature": "child_feature",
"dependencies": [
{
"feature": "parent_feature",
"variants": [
"variantA",
"variantB"
]
}
]
}
],
"links": [
{
"feature": "child_feature",
"links": [
{
"url": "https://github.com/search?q=cleanupReminder&type=code",
"title": "Github cleanup"
}
]
}
]
}Changes
Changed in 2 of the 7 revisions of this API.2010
- ●
added the new
SEMVER_GTEenum value to the//////////response property for the response statusresponse-property-enum-value-added
- ●
added the new
SEMVER_GTEenum value to the//////response property for the response statusresponse-property-enum-value-added
- ●
added the new
SEMVER_GTEenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
SEMVER_GTEenum value to the////////////response property for the response statusresponse-property-enum-value-added
- ●
added the new
SEMVER_GTEenum value to the////////response property for the response statusresponse-property-enum-value-added
- ●
added the new
SEMVER_LTEenum value to the//////////response property for the response statusresponse-property-enum-value-added
- ●
added the new
SEMVER_LTEenum value to the//////response property for the response statusresponse-property-enum-value-added
- ●
added the new
SEMVER_LTEenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
SEMVER_LTEenum value to the////////////response property for the response statusresponse-property-enum-value-added
- ●
added the new
SEMVER_LTEenum value to the////////response property for the response statusresponse-property-enum-value-added
- ●
- ●
removed the optional property
//from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
//from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
//from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
//from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
//from the response with the statusresponse-optional-property-removed
- ●
added the new
REGEXenum value to the//////////response property for the response statusresponse-property-enum-value-added
- ●
added the new
REGEXenum value to the//////response property for the response statusresponse-property-enum-value-added
- ●
added the new
REGEXenum value to the////response property for the response statusresponse-property-enum-value-added
- ●
added the new
REGEXenum value to the////////////response property for the response statusresponse-property-enum-value-added
- ●
added the new
REGEXenum value to the////////response property for the response statusresponse-property-enum-value-added
- ○
added the optional property
////////to the response with the statusresponse-optional-property-added
- ○
added the optional property
///////to the response with the statusresponse-optional-property-added
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
- ○
added the optional property
//////////to the response with the statusresponse-optional-property-added
- ○
added the optional property
/////////to the response with the statusresponse-optional-property-added
- ○
added the optional property
////to the response with the statusresponse-optional-property-added
- ○
response property
featureEnvironments/items/releasePlans/items/milestones/items/strategies/items/strategyNamedeprecated (stability: stable)response-property-deprecated
- ○
response property
features/items/environments/items/releasePlans/items/milestones/items/strategies/items/strategyNamedeprecated (stability: stable)response-property-deprecated
- ○
added the required property
////////to the response with the statusresponse-required-property-added
- ○
added the required property
//////////to the response with the statusresponse-required-property-added
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●