Update CDN Configuration

PUT /v1/cdn/update

Updates existing CDN configuration for a specified domain. This endpoint supports modifying caching rules, origin settings, SSL configuration, and edge routing policies. Changes are propagated across all edge nodes within 30 seconds.

Request Configuration

Fill out the parameters below to construct your request payload. The preview updates in real-time.

Full Strict (Recommended)
Respect Origin Headers
Request Payload Preview
{
  "domain": "app.example.com",
  "origin": "origin.example.com:8080",
  "cache": {
    "default_ttl": 86400,
    "respect_headers": true
  },
  "compression": "gzip",
  "ssl": {
    "mode": "full_strict"
  }
}

Code Examples

cURL
JavaScript
Python
Go
cURL
curl -X PUT "https://api.cloudnexus.io/v1/cdn/update" \
  -H "Authorization: Bearer $CLOUDNEXUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "domain": "app.example.com",
    "origin": "origin.example.com:8080",
    "cache": { "default_ttl": 86400, "respect_headers": true },
    "compression": "gzip",
    "ssl": { "mode": "full_strict" }
  }'

Response

On success, returns 200 OK with the updated configuration object and propagation status.

Click "Test Request" to see a simulated response...

Important Notes

⚠️
Propagation Delay: Configuration updates typically propagate to all 300+ edge nodes within 15-30 seconds. During this window, requests may be served from the previous configuration.
ℹ️
Invalid Parameters: The API validates all fields server-side. TTL values must be between 0 and 31536000 (1 year). Invalid ranges return 400 Bad Request.

For bulk updates across multiple domains, consider using the Batch Endpoint or our Terraform Provider.