Skip to main content
PUT
/
distributions
/
{distributionID}
Update A Distribution
curl --request PUT \
  --url https://api.tenbyte.io/v1/cdn/distributions/{distributionID} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
"{\n    \"name\": \"Tenbyte CDN\",\n    \"description\": \"\",\n    \"host_header\": \"cdn.tenbyte.com.my\",\n    \"is_http2\": true,\n    \"is_http3\": false,\n    \"sni\": \"cdn.tenbyte.com.my\",\n    // \"certificate_id\": \"162ce667-fea3-49ae-8c0b-18bd7b1fe141\",\n    \"enable_webp\": true,\n    \"is_redirect_http_to_https\": false\n}"
'
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Authorization
string

Path Parameters

distributionID
string
required

Body

application/json
name
string
required
description
string
required
host_header
string
required
is_http2
boolean
required
is_http3
boolean
required
sni
string
required
certificate_id
string
required
enable_webp
boolean
required

Response

200 - application/json

The response is of type object.