API referenceSections

Turn point-in-time recovery on or off; the plan's pitr_days says how far back it reaches

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

PUT /api/v1/tenants/{tid}/databases/{id}/pitr

Turn point-in-time recovery on or off; the plan's pitr_days says how far back it reaches (ADR 0183)

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
idpathstringrequired

Request body

required

Content type: application/json

object
  • enabled boolean required
Example
{
  "enabled": true
}

Responses

200 Point-in-time recovery

Content type: application/json

  • database_id string required
  • tenant_id string required
  • server_id string required
  • engine string required
  • name string required
  • enabled boolean required
  • retention_days integer required
  • earliest string (date-time) | null required
  • latest string (date-time) | null required
  • last_base_at string (date-time) | null required
  • last_log_at string (date-time) | null required
  • job_id string required
  • last_error string required
  • updated_at string (date-time) required
  • supported boolean required
  • allowed boolean required
  • method string required
    Allowed values: "binlog" "wal" "log_backups"
  • log_every_minutes integer required
Example
{
  "database_id": "string",
  "tenant_id": "string",
  "server_id": "string",
  "engine": "string",
  "name": "string",
  "enabled": true,
  "retention_days": 0,
  "earliest": "2026-01-01T00:00:00Z",
  "latest": "2026-01-01T00:00:00Z",
  "last_base_at": "2026-01-01T00:00:00Z",
  "last_log_at": "2026-01-01T00:00:00Z",
  "job_id": "string",
  "last_error": "string",
  "updated_at": "2026-01-01T00:00:00Z",
  "supported": true,
  "allowed": true,
  "method": "binlog",
  "log_every_minutes": 0
}

default Error

Content type: application/json

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