v1
latestOpenAPI 3.0.02026-07-13103151174.7 KBFeature Configurations
Update a Feature configuration
Update a Feature configuration by environment key or ID
patch/v1/projects/{project}/features/{feature}/configurations
Path parameters
featurestring required
A Feature key or ID
projectstring required
A Project key or ID
Query parameters
environmentstring required
A Environment key or ID
Request body
Example request
{
"targets": [
{
"_id": "61450f3daec96f5cf4a49946",
"name": "Feature Enabled",
"distribution": [
{
"percentage": 0.0005,
"_variation": "variation-1"
}
],
"audience": {
"name": "Android Users",
"filters": {
"filters": [
{
"subType": "email",
"comparator": "!=",
"values": [
"baduser@email.com"
],
"type": "user"
}
]
}
}
}
]
}Response
Example response
{
"_feature": "61450f3daec96f5cf4a49946",
"_environment": "61450f3daec96f5cf4a49946",
"targets": [
{
"_id": "61450f3daec96f5cf4a49946",
"name": "Feature Enabled",
"audience": {
"name": "Android Users",
"filters": {
"filters": [
{
"subType": "email",
"comparator": "!=",
"values": [
"baduser@email.com"
],
"type": "user"
}
]
}
},
"distribution": [
{
"percentage": 0.0005,
"_variation": "variation-1"
}
],
"bucketingKey": "'organization_id"
}
]
}