Update Firewall Policy
unifi_update_firewall_policyReplace an existing user-defined UniFi firewall policy with a full updated configuration to change live traffic filtering rules; confirm the target policy before applying.
Instructions
Replace a user-defined firewall policy (full PUT). Fetch the current object with unifi_get_firewall_policy, modify it, and pass it as 'config' (system-defined policies cannot be edited). CAUTION: this changes live traffic filtering — confirm with the user and double-check WHICH policy. For a simple enable/disable use unifi_set_firewall_policy_enabled instead. IDs come from unifi_list_firewall_policies.
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": {
"policyId": "<policyId>",
"config": "<config>"
},
"name": "unifi_update_firewall_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | Yes | Full firewall policy object to write (fetch current via unifi_get_firewall_policy, then modify). A config with any value still containing "[redacted]" (how reads show credentials) is refused: put the real value in, or leave the field out. | |
| siteId | No | Site ID (UUID from unifi_list_sites). Optional — when the console has exactly one site it is used automatically. | |
| policyId | Yes | Firewall policy ID (UUID from unifi_list_firewall_policies) |