Skip to content

Update the IP allowlist for an app

PUT
/apps/{slug}/access
curl --request PUT \
--url https://your-server.example/api/apps/example/access \
--header 'Content-Type: application/json' \
--cookie session=<session> \
--data '{ "allow": "1.2.3.4, 10.0.0.0/8" }'
slug
required
string

App slug (lowercase, dash-separated).

Media typeapplication/json
object
allow

Comma-separated IPs and/or CIDRs allowed to reach the app. Empty allows all traffic.

string

Example

1.2.3.4, 10.0.0.0/8

Access rules saved.

Media typeapplication/json
object
status
string
allow
string

Example

{
"status": "ok"
}

Invalid request.

Media typetext/plain
string

The change cannot be applied: a domain belongs to another app or the dashboard (text body), or the app’s current compose file fails security checks (JSON body with every reason; fix and redeploy it first).

object
error
string
violations
Array<string>

Example

{
"error": "compose file contains disallowed directives",
"violations": [
"service \"web\": privileged mode not allowed"
]
}