Global SettingsUpdate CNAME Settings

Update CNAME Settings

update stream cname setting

curl -X POST "https://api.5centscdn.com/v2/streams/settings/cname" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "cname": "docs.example.com",
  "certid": "S"
}'
{
  "result": "success",
  "message": "Stream Settings Updated. Please wait till the deployment completes."
}
POST
/streams/settings/cname
POST
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: X-API-Key)
X-API-Keystring
Required

API key (sent in header)

Content-Typestring
Required

The media type of the request body

Options: application/json
cnamestring

Name that points to actual record.

certidstring

value should be S or L

Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-API-Keystring
Required

API Key for authentication. Provide your API key in the header.

Body

application/json
cnamestring

Name that points to actual record.

Example:
docs.example.com
certidstring

value should be S or L

Example:
S

Responses

resultstring

Status of the API response.

messagestring

Human-readable message describing the result.