Skip to content
EN | DE

Restore database backup

POST
/db/restore
curl --request POST \
--url https://demo.evcc.io/api/db/restore \
--header 'Content-Type: multipart/form-data' \
--cookie auth=<auth> \
--form file=@file

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.

X-Admin-Password

Admin password

string

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

Media typemultipart/form-data
object
file
required

SQLite database backup file

string format: binary

Restore successful, instance is restarting

Invalid file or missing fields

Unauthorized - Login and try again

Media typetext/plain
string
Allowed values: Unauthorized