Update Critical Backup
Update the settings of an existing critical backup job.
curl -X POST "https://api.5centscdn.com/v2/cb/42" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{
"name": "Daily S3 Backup",
"meta": {
"prefix": "s3",
"description": "",
"access_key_id": "AKIAIOSFODNN7EXAMPLE"
}
}'
import requests
import json
url = "https://api.5centscdn.com/v2/cb/42"
headers = {
"Content-Type": "application/json",
"X-API-Key": "YOUR_API_KEY"
}
data = {
"name": "Daily S3 Backup",
"meta": {
"prefix": "s3",
"description": "",
"access_key_id": "AKIAIOSFODNN7EXAMPLE"
}
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
const response = await fetch("https://api.5centscdn.com/v2/cb/42", {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-API-Key": "YOUR_API_KEY"
},
body: JSON.stringify({
"name": "Daily S3 Backup",
"meta": {
"prefix": "s3",
"description": "",
"access_key_id": "AKIAIOSFODNN7EXAMPLE"
}
})
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
"encoding/json"
)
func main() {
data := []byte(`{
"name": "Daily S3 Backup",
"meta": {
"prefix": "s3",
"description": "",
"access_key_id": "AKIAIOSFODNN7EXAMPLE"
}
}`)
req, err := http.NewRequest("POST", "https://api.5centscdn.com/v2/cb/42", bytes.NewBuffer(data))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("X-API-Key", "YOUR_API_KEY")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://api.5centscdn.com/v2/cb/42')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request['X-API-Key'] = 'YOUR_API_KEY'
request.body = '{
"name": "Daily S3 Backup",
"meta": {
"prefix": "s3",
"description": "",
"access_key_id": "AKIAIOSFODNN7EXAMPLE"
}
}'
response = http.request(request)
puts response.body
{
"result": "success",
"message": "CriticalBackup updated"
}
/cb/{backupid}Target server for requests. Edit to use your own host.
API key (sent in header)
Critical Backup job ID
The media type of the request body
Display name for the backup job. Required.
Provider configuration for the backup destination, in the same shape as the create endpoint. prefix identifies the storage provider - not limited to the providers offered at creation time, since a backup can be reassigned to any supported provider through this endpoint - and description is an optional free-text note; all other keys are provider-specific settings for the selected provider. For file or certificate type fields, leaving the field blank retains the value already stored on the backup rather than clearing it. Depending on the provider field's type, some of these keys are validated before submission: size-suffix fields must be a number optionally followed by B, K, M, G, T, or P, or the literal value off; duration fields must be a sequence of optional numeric components for years (y), months (M), weeks (w), days (d), hours (h), minutes (m), seconds (s), and milliseconds (ms), for example 1h30m; URL fields must be a valid URL; JSON fields must contain valid JSON; and CSV fields must contain an even number of comma-separated values.
Request Preview
Response
Response will appear here after sending the request
Authentication
API Key for authentication. Provide your API key in the header.
Path Parameters
Body
Provider configuration for the backup destination, in the same shape as the create endpoint. prefix identifies the storage provider - not limited to the providers offered at creation time, since a backup can be reassigned to any supported provider through this endpoint - and description is an optional free-text note; all other keys are provider-specific settings for the selected provider. For file or certificate type fields, leaving the field blank retains the value already stored on the backup rather than clearing it. Depending on the provider field's type, some of these keys are validated before submission: size-suffix fields must be a number optionally followed by B, K, M, G, T, or P, or the literal value off; duration fields must be a sequence of optional numeric components for years (y), months (M), weeks (w), days (d), hours (h), minutes (m), seconds (s), and milliseconds (ms), for example 1h30m; URL fields must be a valid URL; JSON fields must contain valid JSON; and CSV fields must contain an even number of comma-separated values.
{"prefix":"s3","description":"","access_key_id":"AKIAIOSFODNN7EXAMPLE"}Responses
Status of the API response.
Human-readable status or result message.