Skip to main content
WAFs

Update a web application firewall

Updates mutable WAF fields. Omitted fields keep their current values. If domain changes and upstreams are omitted, existing upstream attachments are migrated to the new domain automatically.

PATCH
/wafs/{wafId}
Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

wafIdstringrequired

WAF device ID

Body

application/json
botguardProtectionboolean

Enable Botguard request inspection/protection (advanced profile only).

cacheDynamicPagesboolean

Cache dynamic page responses when eligible.

cacheStaticFilesboolean

Cache static assets at the edge.

ddosProtectionboolean

Enable baseline DDoS mitigation (advanced profile only).

ddosProtectionAdvancedboolean

Enable advanced DDoS mitigation controls (advanced profile only).

domainstring

New naked domain (no scheme/path/port). Must not already be in use by another active LB/WAF.

enableHttp3boolean

Enable HTTP/3 (QUIC) support on the edge.

namestring

New human-readable WAF name (max 255 chars).

protectionLevelenum<string>

WAF profile: monitoring, full, or advanced.

Available options: monitoring, full, advanced
upstreamsobject[]

Replacement upstream set. When provided, at least one upstream is required.

Minimum array length: 1
upstreamsUseHttpsboolean

Use HTTPS (443) to upstream servers when true; HTTP (80) when false.

Response

application/json

WAF updated

domainstring

Canonical naked domain protected by this WAF.

idstring

WAF device ID. Use this value for get/patch/delete operations.

namestring

Human-readable WAF name.

protectionLevelenum<string>

Current WAF protection profile applied to this domain.

Available options: monitoring, full, advanced
settingsobject

Effective WAF edge settings currently applied in Gatekeeper.

upstreamsobject[]

Backend upstream servers currently attached to this WAF.