Update CDN Zone
/cdn/zones/{zone_uuid}Update a CDN zone.
SSL options:
- ssl_type='automatic' (default): Automatically provisions Let's Encrypt certificate
- ssl_type='custom' + certificate_uuid: Uses an uploaded certificate
A new custom domain starts unverified: the certificate is only issued once it points a CNAME at the zone's domain or publishes the TXT record shown by the zone detail.
Authorization
Bearer YOUR_API_TOKEN with an API token. The X-API-Key: YOUR_API_TOKEN header works too.
Path parameters
Request body
Update a CDN zone
Zone name: lowercase letters, numbers and hyphens, starting and ending with a letter or a number
1 ≤ length ≤ 631 ≤ length ≤ 253SSL type: automatic (Let's Encrypt) or custom
pattern ^(automatic|custom)$UUID of custom certificate
36 ≤ length ≤ 36Enable signed URL validation. Activating without a previously-set secret auto-generates one; the secret is returned in the response only on first generation. Use POST /cdn/zones/{uuid}/token-auth/rotate-secret to rotate.
Bind signed URLs to the client IP. Tightens security against URL sharing but breaks for clients behind CGNAT or with rotating IPs.
Enable CORS (Cross-Origin Resource Sharing) headers for this zone. Required when your content is fetched from JavaScript on another domain (HLS players, fetch APIs, etc.).
Name of the response header of your origin whose values are the cache tags of the object (space or comma separated), so you can purge by tag. Letters, digits, - and _ (1 to 64). null or an empty string turns tags off. Objects already cached keep the tags they were stored with (none before this was set): purge everything once after turning it on or renaming it.
length ≤ 64Compress text responses at the edge with Brotli, Zstandard or gzip, whichever the visitor accepts (off by default). Does not change what is cached. null leaves it as it is.
Origins allowed to fetch this zone's content. Use "*" to allow any origin, or a comma-separated list of exact origins (scheme + host + optional port). Ignored when cors_enabled is false.
length ≤ 4096Managed WAF settings. Only the keys you send change; null leaves everything as it is. In log mode it only detects; in block mode it refuses what scores at or over the threshold.
Properties (5)
off (default), log (detects and logs, nothing is blocked) or block (answers 403 to the requests whose score reaches threshold). block is refused (422) until it is enabled on every edge node.
"off""log""block"Score from which block mode refuses a request, 1 to 100 (default 5). Used only in block mode.
1 ≤ value ≤ 100Sensitivity, 1 (default) or 2. 2 flags more requests.
1 ≤ value ≤ 2Rule ids the zone does not want evaluated. The list is replaced as a whole when given.
items ≤ 256Rule categories the zone does not want evaluated. The list is replaced as a whole when given.
items ≤ 64Responses
Successful Response
application/json