---
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
      - `tags` string[] — IDs of the tags to attach to the firewall. Replaces the current tags; send an empty array to remove all tags.
      - `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

## Changes

- **2026-08-19** `9545f24e8507` — 3 info
  - added the new optional request property `data/attributes/tags` (media type: application/json)
  - added the new optional request property `data/attributes/tags` (media type: application/vnd.api+json)
  - added the optional property `data/attributes/tags` to the response with the `200` status

[Change history](https://skmtc.dev/latitude/apis/latitude-sh-api/changes/firewalls/:firewall_id/patch.md)

---

[API](https://skmtc.dev/latitude/apis/latitude-sh-api.md) · [All operations](https://skmtc.dev/latitude/apis/latitude-sh-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/latitude/latitude-sh-api/revisions/437c7a97e596/schema)
