Update the IP allowlist for an app
PUT
/apps/{slug}/access
const url = 'https://your-server.example/api/apps/example/access';const options = { method: 'PUT', headers: {cookie: 'session=<session>', 'Content-Type': 'application/json'}, body: '{"allow":"1.2.3.4, 10.0.0.0/8"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”slug
required
string
App slug (lowercase, dash-separated).
Request Bodyrequired
Section titled “Request Bodyrequired”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/8Responses
Section titled “Responses”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" ]}string