---
title: "Update blocking mode"
method: PUT
path: "/firewall/apps/{service_id}/blocking"
---

# Update blocking mode

`PUT /firewall/apps/{service_id}/blocking`

Enable or disable blocking mode for a Zen app

## Path parameters

- `service_id` integer, required

## Request body

- object
  - `block` boolean, required — Whether to enable blocking mode for this app. When true, the app will actively block detected attacks. When false, the app will run in detection-only mode and only report attacks without blocking them.
  - `disable_minimum_wait_check` boolean — Skip the 3-day minimum wait period for production apps. This safety period helps prevent accidental blocking of legitimate customer traffic. During this time, you can monitor traffic patterns and verify that only unwanted traffic would be affected.

## Response `200`

The blocking mode has been successfully updated

- object
  - `success` boolean — The boolean true indicating success

## Other responses

- `400` — Bad request - validation failed or minimum wait period not met
- `404` — App not found

---

[API](https://skmtc.net/aikido/apis/authorization.md) · [All operations](https://skmtc.net/aikido/apis/authorization/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aikido/authorization/revisions/5445e7c21137/schema)
