---
title: "Update Firewall Traffic Rule"
method: PUT
path: "/network/firewall/traffic/{id}"
tags: ["Network"]
---

# Update Firewall Traffic Rule

`PUT /network/firewall/traffic/{id}`

Replace and apply an existing user-managed firewall traffic rule

## Path parameters

- `id` integer, required

## Request body

- GithubComAlchemillahqSylveInternalInterfacesServicesNetworkUpsertFirewallTrafficRuleRequest
  - `action` 'pass' | 'block', required
  - `description` string
  - `destObjId` integer
  - `destRaw` string
  - `direction` 'in' | 'out', required
  - `dstPortObjId` integer
  - `dstPortsRaw` string
  - `egressInterfaces` string[], required
  - `enabled` boolean
  - `family` 'any' | 'inet' | 'inet6', required
  - `ingressInterfaces` string[], required
  - `log` boolean
  - `name` string, required
  - `priority` integer
  - `protocol` 'any' | 'tcp' | 'udp' | 'tcp_udp' | 'icmp', required
  - `quick` boolean
  - `sourceObjId` integer
  - `sourceRaw` string
  - `srcPortObjId` integer
  - `srcPortsRaw` string

## Response `200`

Success

- GithubComAlchemillahqSylveInternalAPIResponseAny
  - `data` unknown
  - `error` string
  - `message` string
  - `status` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `413` — Payload Too Large
- `500` — Internal Server Error

---

[API](https://skmtc.net/alchemillahq/apis/sylve-api.md) · [All operations](https://skmtc.net/alchemillahq/apis/sylve-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/alchemillahq/sylve-api/revisions/7a7bea85004e/schema)
