API referenceSections

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

PUT /api/v1/tenants/{tid}/backup-settings

Change 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

NameInTypeRequiredDescription
tidpathstringrequired
X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Request body

required

Content type: application/json

  • s3_endpoint string optional
  • s3_region string optional
  • s3_bucket string optional
  • s3_prefix string optional
  • s3_path_style boolean optional
  • s3_access_key string optional
  • s3_secret_key string optional

    Write only; empty keeps the stored one

  • sftp_host string optional

    SFTP instead of S3 (ADR 0078); empty turns SFTP off

  • sftp_port integer optional
  • sftp_user string optional
  • sftp_dir string optional
  • sftp_host_key string optional

    Required: SHA256:… fingerprint of the server's host key

  • sftp_password string optional

    Write only; empty keeps the stored login

  • sftp_private_key string optional

    Write only, PEM; instead of a password

  • schedule string required
    Allowed values: "off" "daily" "weekly"
  • schedule_kind string required
    Allowed values: "full" "databases" "incremental"
  • schedule_hour integer optional
  • full_every_days integer optional

    1 to 60; 0 or missing is 7

  • schedule_server string optional
  • keep_local integer required
  • keep_remote integer 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_id string required
  • s3_endpoint string required
  • s3_region string required
  • s3_bucket string required
  • s3_prefix string required
  • s3_path_style boolean required
  • s3_access_key string required
  • s3_configured boolean required
  • sftp_host string optional
  • sftp_port integer optional
  • sftp_user string optional
  • sftp_dir string optional
  • sftp_host_key string optional

    The SFTP server's key fingerprint, SHA256:… as ssh-keygen -l prints it

  • sftp_auth string optional
    Allowed values: "" "password" "key"
  • sftp_configured boolean optional
  • cloud_provider string optional

    Connected cloud account (ADR 0100)

    Allowed values: "" "gdrive" "onedrive" "dropbox"
  • cloud_folder string optional
  • cloud_account string optional

    The account's email or name as the service gave it

  • cloud_connected_at string (date-time) | null optional
  • cloud_configured boolean optional
  • cloud_offered array<string> optional

    Services the provider set up

    Allowed values: "gdrive" "onedrive" "dropbox"
  • schedule string required
    Allowed values: "off" "daily" "weekly"
  • schedule_kind string required
    Allowed values: "full" "databases" "incremental"
  • schedule_hour integer required

    UTC hour

  • full_every_days integer optional

    With schedule_kind incremental: a full backup starts a new chain once the chain's full backup is this many days old

  • schedule_server string required
  • keep_local integer required
  • keep_remote integer required
  • last_scheduled_at string (date-time) | null optional
  • updated_at string (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

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required