---
title: "Partially update a Firewall"
method: PATCH
path: "/workspace/firewalls/{firewall_id}"
tags: ["Firewalls"]
---

# Partially update a Firewall

`PATCH /workspace/firewalls/{firewall_id}`

Update one or more fields of an existing Firewall without affecting other fields.

## Path parameters

- `firewall_id` integer, required

## Request body

- PatchedFirewallRequest
  - `name` string
  - `modules` FirewallModulesRequest
    - `functions` FirewallModuleRequest — Serializer for individual modules in Firewall. Handles serialization and deserialization of module settings with an enabled flag.
      - `enabled` boolean
    - `network_protection` FirewallModuleRequest — Serializer for individual modules in Firewall. Handles serialization and deserialization of module settings with an enabled flag.
      - `enabled` boolean
    - `waf` FirewallModuleRequest — Serializer for individual modules in Firewall. Handles serialization and deserialization of module settings with an enabled flag.
      - `enabled` boolean
  - `debug` boolean
  - `active` boolean

## Response `200`

Firewall partially updated successfully.

- FirewallResponse
  - `state` string
  - `data` Firewall, required
    - `id` integer, required
    - `name` string, required
    - `modules` FirewallModules
      - `ddos_protection` FirewallModule, required — Serializer for individual modules in Firewall. Handles serialization and deserialization of module settings with an enabled flag.
        - `enabled` boolean
      - `functions` FirewallModule — Serializer for individual modules in Firewall. Handles serialization and deserialization of module settings with an enabled flag.
        - `enabled` boolean
      - `network_protection` FirewallModule — Serializer for individual modules in Firewall. Handles serialization and deserialization of module settings with an enabled flag.
        - `enabled` boolean
      - `waf` FirewallModule — Serializer for individual modules in Firewall. Handles serialization and deserialization of module settings with an enabled flag.
        - `enabled` boolean
    - `debug` boolean
    - `active` boolean
    - `last_editor` string, required
    - `last_modified` string, date-time, required
    - `created_at` string, date-time, required
    - `product_version` string, required

## Other responses

- `400` — Validation Error
- `401` — Authentication Failed
- `403` — Permission Denied
- `404` — Not Found
- `405` — Method Not Allowed
- `406` — Not Acceptable
- `429` — Throttled
- `500` — Internal Server Error

---

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