---
title: "Update countries"
method: PUT
path: "/firewall/apps/{app_id}/countries"
---

# Update countries

`PUT /firewall/apps/{app_id}/countries`

Update the country-based IP blocking configuration for an app

## Path parameters

- `app_id` integer, required

## Request body

- object
  - `mode` 'block' | 'allow', required — 'block' = block requests from specified countries, 'allow' = only allow requests from specified countries
  - `list` string[], required

## Response `200`

The countries configuration has been successfully updated

- object
  - `success` boolean — Indicates whether the operation was successful

## Other responses

- `400` — Invalid request body
- `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)
