db

Restore database backup

Changed on

Restores the database from a previously downloaded backup file. Session users must supply the admin password in the X-Admin-Password header. API key holders via Bearer token are exempt. The instance restarts after a successful restore.

post/db/restore

Request

  • Base URL
    https://demo.evcc.io/api
  • URL
    https://demo.evcc.io/api/db/restore
  • Auth
    • API key in cookie auth
    • or HTTP bearer

Headers

X-Admin-Passwordstring

Admin password

Admin password (required for session auth, not needed for API key)

Request body multipart/form-data

filestring binary required

SQLite database backup file

Response

Restore successful, instance is restarting

Changes