Update CDN settings for a domain

Change security and performance settings for your domain's CDN. You can configure everything from DDoS protection to SSL modes and geoblocking. This endpoint returns an ID that may be needed for subsequent actions.

Headers

Accept Example
Content-Type Example

Body

required
application/json
domain string required
proxy boolean required
ddosMode string · enum required
av
medel
alwaysUseHttps boolean required
nonSwedenTrafficAction string · enum required
challenge
off
sslMode string · enum required
flexible
full
minTlsVersion string · enum required
1.0
1.1
1.2
1.3
botProtection boolean required
blockBadCrawlers boolean required
wpLoginProtection boolean required
wpadminChallenge boolean required
blockBadBots boolean required
earlyHints boolean required
alwaysOnline boolean required
koalityengineAllowlist boolean required
wafSkipEnabled boolean required
wafChallengeGeoEnabled boolean required
geo_whitelist_countries string · enum required
BE,NL,NO,FI,GB,IT,FR,DK,DE,ES,IS,AT,CH
NL
NO,FI,DK,IS
wafIpAllowlist array required
wafUaAllowlist array required
wafPathAllowlist array required
dnssecEnabled boolean required

Responses

200
success boolean
timestamp string
requestId string
data object
401
error string
message string
code string
timestamp string
requestId string
PUT https://cloud.hostup.se/api/cdn/zones
For AI assistants
cURL
curl -X PUT "https://cloud.hostup.se/api/cdn/zones" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "domain": "string",
    "proxy": true,
    "ddosMode": "av",
    "alwaysUseHttps": true,
    "nonSwedenTrafficAction": "challenge",
    "sslMode": "flexible",
    "minTlsVersion": "1.0",
    "botProtection": true,
    "blockBadCrawlers": true,
    "wpLoginProtection": true,
    "wpadminChallenge": true,
    "blockBadBots": true,
    "earlyHints": true,
    "alwaysOnline": true,
    "koalityengineAllowlist": true,
    "wafSkipEnabled": true,
    "wafChallengeGeoEnabled": true,
    "geo_whitelist_countries": "",
    "wafIpAllowlist": [
      "string"
    ],
    "wafUaAllowlist": [
      "string"
    ],
    "wafPathAllowlist": [
      "string"
    ],
    "dnssecEnabled": true
  }'
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "success": true,
    "domain": "string",
    "updated_fields": [
      "string"
    ],
    "security_settings_updated": true
  }
}
Request Body
{
  "domain": "string",
  "proxy": true,
  "ddosMode": "av",
  "alwaysUseHttps": true,
  "nonSwedenTrafficAction": "challenge",
  "sslMode": "flexible",
  "minTlsVersion": "1.0",
  "botProtection": true,
  "blockBadCrawlers": true,
  "wpLoginProtection": true,
  "wpadminChallenge": true,
  "blockBadBots": true,
  "earlyHints": true,
  "alwaysOnline": true,
  "koalityengineAllowlist": true,
  "wafSkipEnabled": true,
  "wafChallengeGeoEnabled": true,
  "geo_whitelist_countries": "",
  "wafIpAllowlist": [
    "string"
  ],
  "wafUaAllowlist": [
    "string"
  ],
  "wafPathAllowlist": [
    "string"
  ],
  "dnssecEnabled": true
}