Portabase DashboardAPIDatabases
Restore a database from a backup
Authorization
apiKeyAuth x-api-key<token>
API key generated from the Portabase dashboard. Pass as the x-api-key header.
In: header
Path Parameters
id*string
Format
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/databases/123e4567-e89b-12d3-a456-426614174000/restore" \ -H "Content-Type: application/json" \ -d '{ "backupId": "eb7cea43-10b2-42dd-8819-ab9aed37565f", "backupStorageId": "a2051789-953f-432f-bf4f-6939c87a32b9" }'{
"data": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"status": "waiting",
"backupStorageId": "a2051789-953f-432f-bf4f-6939c87a32b9",
"backupId": "eb7cea43-10b2-42dd-8819-ab9aed37565f",
"databaseId": "d0f4f849-8ecf-4909-96bf-7953790e45f9",
"updatedAt": "2019-08-24T14:15:22Z",
"createdAt": "2019-08-24T14:15:22Z",
"deletedAt": "2019-08-24T14:15:22Z"
}
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}