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.
Autorización
Bearer YOUR_API_TOKEN con un token de API. También vale la cabecera X-API-Key: YOUR_API_TOKEN.
Parámetros de ruta
Cuerpo de la petición
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.
Propiedades (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 ≤ 64Challenge of the under attack mode: ttl_minutes (10 to 1440) and difficulty (12 to 20). Only the keys you send change; a key set to null goes back to the platform default; null for the whole object changes nothing. The settings are kept between attacks.
Propiedades (2)
How long a visitor that solved the challenge is not asked again, 10 to 1440 minutes (default 30). Lowering it makes visitors who already had a pass solve the challenge again.
10 ≤ value ≤ 1440How much work the visitor's browser does to pass, 12 to 20 (default 16, or 18 at level 3). Each step doubles the work, so an old phone takes longer to get in. Raising it makes visitors who already had a pass solve the challenge again.
12 ≤ value ≤ 20HTTPS settings: always_use_https, min_tls_version (1.2 or 1.3) and hsts {enabled, max_age, include_subdomains, preload}. Only the keys you send change; null leaves everything as it is. Turning off always_use_https, using TLS 1.3 or turning HSTS on is refused until the platform enables it.
Propiedades (3)
Redirect HTTP requests to HTTPS (on by default). Turn it off only if visitors must be able to use plain HTTP.
Oldest TLS version the zone accepts, 1.2 (default) or 1.3. With 1.3, old browsers and apps can no longer connect to the zone.
"1.2""1.3"HSTS settings. null leaves them as they are.
Propiedades (4)
Send Strict-Transport-Security. Turning it off after it was on makes the zone send max-age=0 so that browsers forget the policy. null leaves it as it is.
Seconds a browser remembers to use HTTPS only, 300 to 63072000 (2 years). Default 15552000 (6 months).
300 ≤ value ≤ 63072000Also applies to every subdomain of the host.
Marks the host as eligible for browser preload lists. Needs include_subdomains and a max_age of at least 31536000. Browsers that preload a host cannot be taken back to HTTP quickly.
Let WebSocket connections (and other Connection: Upgrade tunnels) reach your origin through the CDN (on by default). Tunnels are not cached; firewall, rate limit, WAF and under attack rules apply when the connection opens, and the frames are not inspected. Outgoing traffic is billed like the rest of the CDN. A tunnel closes after 1 hour without data and when an edge node restarts, so the client must reconnect. null leaves it as it is.
Resize and convert images at the edge with URLs like /cdn-cgi/image/<options>/<path> (off by default, beta, no charge). Turning it on or off empties the zone's cache once on each edge node. null leaves it as it is.
Respuestas
Successful Response
application/json