---
title: "Update IP blocklist"
method: PUT
path: "/firewall/apps/{app_id}/ip-blocklist"
---

# Update IP blocklist

`PUT /firewall/apps/{app_id}/ip-blocklist`

## Request

- Base URL: `https://app.aikido.dev/api/public/v1`
- URL: `https://app.aikido.dev/api/public/v1/firewall/apps/{app_id}/ip-blocklist`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://app.aikido.io/api/oauth/token` scopes: `firewall:write`

Set the custom IP blocklist for an app. This will replace the existing blocklist with the new one.

## Path parameters

- `app_id` integer, required

## Request body

- object
  - `ip_addresses` unknown[], required: The list of IP addresses to block
    - unknown

## Response `200`

The IP blocklist 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.dev/aikido/apis/aikido-security-api-documentation.md) - [All operations](https://skmtc.dev/aikido/apis/aikido-security-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/aikido/apis/aikido-security-api-documentation/revisions/da8691338133?raw)
