---
title: "Update a firewall"
method: PATCH
path: "/project/{project_id}/location/{location}/firewall/{firewall_reference}"
tags: ["Firewall"]
---

# Update a firewall

`PATCH /project/{project_id}/location/{location}/firewall/{firewall_reference}`

## Request body

- object
  - `description` string, required — New description for firewall

## Response `200`

A Firewall

- Firewall
  - `description` string, required — Description of the firewall
  - `firewall_rules` FirewallRule[], required — List of firewall rules
    - `cidr` string, required — CIDR of the firewall rule
    - `id` string, required — ID of the firewall rule
    - `port_range` string, required — Port range of the firewall rule
    - `protocol` 'tcp' | 'udp', required — Protocol of the firewall rule (tcp or udp)
    - `description` string, required — Description of the firewall rule
  - `id` string, required — ID of the firewall
  - `location` string, required — Location of the firewall
  - `name` string, required — Name of the firewall

## Other responses

- `default` — An error response

## Changes

> 59 revisions in range; 5 could not be searched.

- **2026-05-21** `65eaca27bbb7` — 1 info
  - added the required property `firewall_rules/items/protocol` to the response with the `200` status
- **2025-12-09** `1120a7646cfa` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/ubicloud/apis/clover-api/changes/project/:project_id/location/:location/firewall/:firewall_reference/patch.md)

---

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