Create a backup config for an app
POST
/apps/{slug}/backups/configs
const url = 'https://your-server.example/api/apps/example/backups/configs';const options = { method: 'POST', headers: {cookie: 'session=<session>', 'Content-Type': 'application/json'}, body: '{"id":1,"app_id":1,"name":"example","strategy":"postgres","strategy_config_json":"example","target":"s3","target_config_json":"example","schedule_cron":"example","retention_count":1,"enabled":true,"created_at":"2026-04-15T12:00:00Z"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://your-server.example/api/apps/example/backups/configs \ --header 'Content-Type: application/json' \ --cookie session=<session> \ --data '{ "id": 1, "app_id": 1, "name": "example", "strategy": "postgres", "strategy_config_json": "example", "target": "s3", "target_config_json": "example", "schedule_cron": "example", "retention_count": 1, "enabled": true, "created_at": "2026-04-15T12:00:00Z" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”slug
required
string
App slug (lowercase, dash-separated).
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
id
integer format: int64
app_id
integer format: int64
name
string
strategy
string
Example
postgresstrategy_config_json
string
target
string
Example
s3target_config_json
string
schedule_cron
string
retention_count
integer
enabled
boolean
created_at
string format: date-time
Responses
Section titled “Responses”Created.
Media typeapplication/json
object
id
integer format: int64
app_id
integer format: int64
name
string
strategy
string
strategy_config_json
string
target
string
target_config_json
string
schedule_cron
string
retention_count
integer
enabled
boolean
created_at
string format: date-time
Example
{ "strategy": "postgres", "target": "s3"}