Update countries

Update the country-based IP blocking configuration for an app

put/firewall/apps/{app_id}/countries

Request

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

Path parameters

app_idinteger required

The ID of the Zen app

Request body

mode'block' | 'allow' required

'block' = block requests from specified countries, 'allow' = only allow requests from specified countries

liststring[] required

Response

The countries configuration has been successfully updated

successboolean

Indicates whether the operation was successful

Example response

{
  "success": true
}

Changes

No recorded changes to this operation across all 1 revision of this API.