update_rule_based_segment_definition
Update the rules, exclusions, and matchers of a segment definition in a specified workspace and environment.
Instructions
Update a rule-based segment definition in an environment (rules, exclusions, matchers)
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": {
"workspace_id": "<workspace_id>",
"environment_id": "<environment_id>",
"segment_name": "<segment_name>",
"definition": "<definition>"
},
"name": "update_rule_based_segment_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| definition | Yes | Full segment definition as a JSON string — includes rules, excludedKeys, excludedSegments | |
| segment_name | Yes | The segment name | |
| workspace_id | Yes | The workspace ID | |
| environment_id | Yes | The environment ID or name |