Critical BackupCreate Backup Zone

Create Backup Zone

Link a CDN zone to a critical backup job so its content is automatically backed up.

curl -X POST "https://api.5centscdn.com/v2/cb/42/zone" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "_METHOD": "PUT",
  "zoneid": 2102,
  "meta": {
    "mode": "1",
    "sync": "3",
    "compare": "1",
    "casesync": "2",
    "directory": {
      "source": "/",
      "sink": "",
      "backup": ""
    },
    "filters": "",
    "backup": "Y",
    "backupmode": "date"
  }
}'
{
  "result": "success",
  "message": "CriticalBackup link added"
}
POST
/cb/{backupid}/zone
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)

path
backupidinteger
Required

Critical Backup job ID

Content-Typestring
Required

The media type of the request body

Options: application/json
_METHODstring
Required

HTTP method override for this request. Always set to PUT to link a new zone.

zoneidinteger
Required

ID of the existing CDN zone to link to this backup. Required.

metaobject
Required

Sync configuration for the linked zone.

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.

Path Parameters

backupidinteger
Required

Critical Backup job ID

Example:
42

Body

application/json
_METHODstring
Required

HTTP method override for this request. Always set to PUT to link a new zone.

Example:
PUT
zoneidinteger
Required

ID of the existing CDN zone to link to this backup. Required.

Example:
2102
metaobject
Required

Sync configuration for the linked zone.

Responses

resultstring

Status of the API response.

messagestring

Human-readable status or result message.