update_traffic_rule
Update an existing UniFi traffic rule by ID, patching only supplied fields to change its action, matching target, or enabled state.
Instructions
Update an existing traffic rule by id. Pass any subset of fields to patch.
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": {
"id": "<id>",
"payload": "<payload>"
},
"name": "update_traffic_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The _id of the traffic rule to update | |
| payload | Yes | Partial rule fields to update (description, action, matching_target, enabled, target_*_ids, etc.) |