UpdateFeatureFlagRule
Modify an existing feature flag rule's traffic percent split and variation assignments in a specified environment, letting you adjust rollout targeting and testing configurations.
Instructions
Update a feature flag rule
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"featureIdOrKey": "<featureIdOrKey>",
"environmentIdOrKey": "<environmentIdOrKey>",
"ruleIdOrKey": "<ruleIdOrKey>",
"sdk": "<sdk>",
"campaignData": "<campaignData>"
},
"name": "UpdateFeatureFlagRule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sdk | Yes | Check the SDK using the file extension and select the SDK accordingly. | |
| ruleIdOrKey | Yes | ||
| campaignData | Yes | If you want to update the traffic for any rule, you can provide the campaignData.percentSplit. If not provided, the traffic will not be updated. For personalized rules, if you want to update the variation, you can provide the campaignData.variations.featureVariationId to update the variation. For testing rule, you can provide the campaignData.variations.percentSplit to update the traffic for the variation and also if you want to update the variation, you can provide the campaignData.variations.featureVariationId to update the variation. | |
| featureIdOrKey | Yes | ||
| environmentIdOrKey | Yes |