---
title: "Update firewall state / sensitivity for an IP"
method: PUT
path: "/dedicated/{serviceId}/firewall"
tags: ["Dedicated Servers"]
---

# Update firewall state / sensitivity for an IP

`PUT /dedicated/{serviceId}/firewall`

## Request

- Base URL: `https://api.imprezahost.com/v1`
- URL: `https://api.imprezahost.com/v1/dedicated/{serviceId}/firewall`
- Auth: API key in header `X-API-Key` and API key in header `X-API-Secret`

Requires the `firewall` capability — otherwise returns `404 NOT_SUPPORTED`.

## Path parameters

- `serviceId` integer, required

## Request body

- object
  - `ip` string, ipv4, required
  - `state` 'always_on' | 'redirect_on_attack' | 'null', nullable: Set to `null` to leave unchanged
  - `sensitivity` 'low' | 'normal' | 'medium' | 'high' | 'null', nullable: Set to `null` to leave unchanged

## Response `200`

Firewall updated

## Other responses

- `404`: This service does not support firewall

---

[API](https://skmtc.dev/imprezahost/apis/impreza-host-public-api.md) · [All operations](https://skmtc.dev/imprezahost/apis/impreza-host-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/imprezahost/apis/impreza-host-public-api/revisions/db86511f604f?raw)
