Import feature flags
Changed onImport feature flags into a specific project and environment.
Request
- Base URLhttps://app.unleash-instance.example.com
- URLhttps://app.unleash-instance.example.com/api/admin/features-batch/import
- Auth
- API key in header Authorization
- or HTTP bearer
Request body
Example request
{
"project": "My awesome project",
"environment": "development",
"data": {
"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"
}
]
}
]
}
}Response
This response has no body.
Changes
- breaking
the
///////////request property's minLength was increased from0to1 - breaking
the
///////request property's minLength was increased from0to1 - breaking
the
/////request property's minLength was increased from0to1 - breaking
the
/////////////request property's minLength was increased from0to1 - breaking
the
/////////request property's minLength was increased from0to1 - info
added the new
SEMVER_GTEenum value to the request property/////////// - info
added the new
SEMVER_GTEenum value to the request property/////// - info
added the new
SEMVER_GTEenum value to the request property///// - info
added the new
SEMVER_GTEenum value to the request property///////////// - info
added the new
SEMVER_GTEenum value to the request property///////// - info
added the new
SEMVER_LTEenum value to the request property/////////// - info
added the new
SEMVER_LTEenum value to the request property/////// - info
added the new
SEMVER_LTEenum value to the request property///// - info
added the new
SEMVER_LTEenum value to the request property///////////// - info
added the new
SEMVER_LTEenum value to the request property/////////
- breaking
- breaking
added the new required request property
///////// - breaking
added the new required request property
/////////// - warning
removed the request property
/// - warning
removed the request property
/// - warning
removed the request property
/// - warning
removed the request property
/// - warning
removed the request property
/// - info
added the new optional request property
///////// - info
added the new optional request property
//////// - info
added the new optional request property
/// - info
added the new optional request property
/////////// - info
added the new optional request property
////////// - info
added the new optional request property
///// - info
request property
/////////deprecated (stability: stable) - info
request property
///////////deprecated (stability: stable) - info
added the new
REGEXenum value to the request property/////////// - info
added the new
REGEXenum value to the request property/////// - info
added the new
REGEXenum value to the request property///// - info
added the new
REGEXenum value to the request property///////////// - info
added the new
REGEXenum value to the request property/////////
- breaking