Change the S3 target (an empty secret keeps the old one), schedule and how many to keep
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
/api/v1/tenants/{tid}/backup-settingsChange the S3 target (an empty secret keeps the old one), schedule and how many to keep
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Request body
required
Content type: application/json
s3_endpointstring optionals3_regionstring optionals3_bucketstring optionals3_prefixstring optionals3_path_styleboolean optionals3_access_keystring optionals3_secret_keystring optionalWrite only; empty keeps the stored one
sftp_hoststring optionalSFTP instead of S3 (ADR 0078); empty turns SFTP off
sftp_portinteger optionalsftp_userstring optionalsftp_dirstring optionalsftp_host_keystring optionalRequired: SHA256:… fingerprint of the server's host key
sftp_passwordstring optionalWrite only; empty keeps the stored login
sftp_private_keystring optionalWrite only, PEM; instead of a password
schedulestring requiredAllowed values:"off""daily""weekly"schedule_kindstring requiredAllowed values:"full""databases""incremental"schedule_hourinteger optionalfull_every_daysinteger optional1 to 60; 0 or missing is 7
schedule_serverstring optionalkeep_localinteger requiredkeep_remoteinteger required
Example
{
"s3_endpoint": "string",
"s3_region": "string",
"s3_bucket": "string",
"s3_prefix": "string",
"s3_path_style": true,
"s3_access_key": "string",
"s3_secret_key": "string",
"sftp_host": "string",
"sftp_port": 0,
"sftp_user": "string",
"sftp_dir": "string",
"sftp_host_key": "string",
"sftp_password": "string",
"sftp_private_key": "string",
"schedule": "off",
"schedule_kind": "full",
"schedule_hour": 0,
"full_every_days": 0,
"schedule_server": "string",
"keep_local": 0,
"keep_remote": 0
}Responses
200 Saved
Content type: application/json
tenant_idstring requireds3_endpointstring requireds3_regionstring requireds3_bucketstring requireds3_prefixstring requireds3_path_styleboolean requireds3_access_keystring requireds3_configuredboolean requiredsftp_hoststring optionalsftp_portinteger optionalsftp_userstring optionalsftp_dirstring optionalsftp_host_keystring optionalThe SFTP server's key fingerprint, SHA256:… as ssh-keygen -l prints it
sftp_authstring optionalAllowed values:"""password""key"sftp_configuredboolean optionalcloud_providerstring optionalConnected cloud account (ADR 0100)
Allowed values:"""gdrive""onedrive""dropbox"cloud_folderstring optionalcloud_accountstring optionalThe account's email or name as the service gave it
cloud_connected_atstring (date-time) | null optionalcloud_configuredboolean optionalcloud_offeredarray<string> optionalServices the provider set up
Allowed values:"gdrive""onedrive""dropbox"schedulestring requiredAllowed values:"off""daily""weekly"schedule_kindstring requiredAllowed values:"full""databases""incremental"schedule_hourinteger requiredUTC hour
full_every_daysinteger optionalWith schedule_kind incremental: a full backup starts a new chain once the chain's full backup is this many days old
schedule_serverstring requiredkeep_localinteger requiredkeep_remoteinteger requiredlast_scheduled_atstring (date-time) | null optionalupdated_atstring (date-time) optional
Example
{
"tenant_id": "string",
"s3_endpoint": "string",
"s3_region": "string",
"s3_bucket": "string",
"s3_prefix": "string",
"s3_path_style": true,
"s3_access_key": "string",
"s3_configured": true,
"sftp_host": "string",
"sftp_port": 0,
"sftp_user": "string",
"sftp_dir": "string",
"sftp_host_key": "string",
"sftp_auth": "",
"sftp_configured": true,
"cloud_provider": "",
"cloud_folder": "string",
"cloud_account": "string",
"cloud_connected_at": "2026-01-01T00:00:00Z",
"cloud_configured": true,
"cloud_offered": [
"gdrive"
],
"schedule": "off",
"schedule_kind": "full",
"schedule_hour": 0,
"full_every_days": 0,
"schedule_server": "string",
"keep_local": 0,
"keep_remote": 0,
"last_scheduled_at": "2026-01-01T00:00:00Z",
"updated_at": "2026-01-01T00:00:00Z"
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required