Restores a backup for a site.
If successful, this endpoint will return a 200 OK status.
The following arguments are supported for this endpoint.
| Name | Type | Default Value |
|---|---|---|
|
site Required |
Site Lookup | None |
|
backup Required |
Site Backup Lookup | None |
|
restore_type Required The type of a restore |
RestoreTypeEnum | None |
|
database_name The name of the database to restore |
String | None |
The following errors may occur during this request.
| Details | HTTP status |
|---|---|
|
No backup was found matching any of the criteria provided in the arguments |
404 Not Found |
|
The provided database name to restore is not valid |
400 Bad Request |
|
The provided restore type is not valid |
400 Bad Request |
|
There's currently a restore in progress for this site. |
409 Conflict |
|
No site was found matching any of the criteria provided in the arguments |
404 Not Found |
|
A validation error occurred with the object that was being created/updated/deleted |
422 Unprocessable Entity |
When the request is successful, you can expect an object matching the specification below to be returned.
{ restore: Restore { id: Integer backup_id: Integer status: RestoreStatusEnum completed: Boolean object_name: String? restore_type: RestoreTypeEnum created_at: Unix Timestamp } }