CubePathDOCS
CDN

Update CDN Zone

patch/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

Authorization
Authorization*string

Bearer YOUR_API_TOKEN with an API token. The X-API-Key: YOUR_API_TOKEN header works too.

Path parameters

zone_uuid*string

Request body

Update a CDN zone

application/jsonRequired
name?string | null

Zone name: lowercase letters, numbers and hyphens, starting and ending with a letter or a number

Range1 ≤ length ≤ 63
custom_domain?string | null
Range1 ≤ length ≤ 253
ssl_type?string | null

SSL type: automatic (Let's Encrypt) or custom

Rangepattern ^(automatic|custom)$
certificate_uuid?string | null

UUID of custom certificate

Range36 ≤ length ≤ 36
token_auth_enabled?boolean | null

Enable 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.

token_auth_ip_binding?boolean | null

Bind signed URLs to the client IP. Tightens security against URL sharing but breaks for clients behind CGNAT or with rotating IPs.

cors_enabled?boolean | null

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.).

cache_tag_header?string | null

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.

Rangelength ≤ 64
compression_enabled?boolean | null

Compress 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.

cors_allow_origins?string | null

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.

Rangelength ≤ 4096
managed_waf?ManagedWAFUpdate | null

Managed 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)
mode?string | null

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.

Value in"off""log""block"
threshold?integer | null

Score from which block mode refuses a request, 1 to 100 (default 5). Used only in block mode.

Range1 ≤ value ≤ 100
level?integer | null

Sensitivity, 1 (default) or 2. 2 flags more requests.

Range1 ≤ value ≤ 2
exclude_rule_ids?array<integer> | null

Rule ids the zone does not want evaluated. The list is replaced as a whole when given.

Rangeitems ≤ 256
exclude_categories?array<string> | null

Rule categories the zone does not want evaluated. The list is replaced as a whole when given.

Rangeitems ≤ 64

Responses

Successful Response

application/json

detail*string
token_auth_secret?string | null