---
title: "Update firewall"
method: PATCH
path: "/firewalls/{firewall_id}"
tags: ["Firewalls"]
---

# Update firewall

`PATCH /firewalls/{firewall_id}`

Updates a firewall by its ID.

## Path parameters

- `firewall_id` string, required

## Request body

- object
  - `data` object, required
    - `type` 'firewalls', required
    - `attributes` object
      - `name` string
      - `rules` object[]
        - `from` string
        - `to` string
        - `protocol` 'TCP' | 'UDP'
        - `port` string — Port number or range (e.g., "80", "80-443")
        - `description` string, nullable — Optional description explaining the purpose of this rule

## Response `200`

Success

---

[API](https://skmtc.net/latitude/apis/latitude-sh-api.md) · [All operations](https://skmtc.net/latitude/apis/latitude-sh-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/latitude/latitude-sh-api/versions/7302d79e39bb/schema)
