updateStrategy
Modify strategy configurations for feature flags in specific environments, enabling dynamic behavior updates based on constraints and parameters within the Unleash MCP system.
Instructions
Update a strategy configuration for a feature flag in the specified environment
Input Schema
Name | Required | Description | Default |
---|---|---|---|
constraints | No | Constraints for the strategy | |
environment | Yes | Environment name (e.g., development, production) | |
featureName | Yes | Name of the feature flag | |
name | Yes | Strategy name (e.g., default, userWithId, gradualRollout) | |
parameters | No | Parameters for the strategy as key-value pairs | |
projectId | Yes | ID of the project | |
strategyId | Yes | ID of the strategy to update |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"constraints": {
"description": "Constraints for the strategy",
"items": {
"additionalProperties": false,
"properties": {
"contextName": {
"description": "Context field name",
"type": "string"
},
"operator": {
"description": "Operator (e.g., IN, NOT_IN, STR_CONTAINS)",
"type": "string"
},
"values": {
"description": "Array of values to compare against",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"contextName",
"operator",
"values"
],
"type": "object"
},
"type": "array"
},
"environment": {
"description": "Environment name (e.g., development, production)",
"minLength": 1,
"type": "string"
},
"featureName": {
"description": "Name of the feature flag",
"maxLength": 100,
"minLength": 1,
"pattern": "^[a-z0-9-_.]+$",
"type": "string"
},
"name": {
"description": "Strategy name (e.g., default, userWithId, gradualRollout)",
"minLength": 1,
"type": "string"
},
"parameters": {
"additionalProperties": {
"type": "string"
},
"description": "Parameters for the strategy as key-value pairs",
"type": "object"
},
"projectId": {
"description": "ID of the project",
"minLength": 1,
"type": "string"
},
"strategyId": {
"description": "ID of the strategy to update",
"minLength": 1,
"type": "string"
}
},
"required": [
"projectId",
"featureName",
"environment",
"strategyId",
"name"
],
"type": "object"
}