Restore a backup to a new volume
POST/volumes/{name}/restore
Materialises a backup into the new volume {name}. 409 when {name} already exists (restore never overwrites), 404 when the backup is gone.
path parameters
object
namestringrequiredName of the new volume to create.
Request bodyapplication/json
RestoreVolReq
fromstringBackup id to restore.
Responses
201 CreatedCreated
Volume
attached_tostringcreated_atstringdate-timehost_idstringnamestringsize_bytesintegerint64400 Bad requestBad Request
ErrorResponse
errorstring404 Not foundNot Found
ErrorResponse
errorstring409 ConflictConflict
ErrorResponse
errorstring501 Not Implemented
ErrorResponse
errorstringAuthentication
bearerAuthHTTP bearer. Daemon API key. Omit on a keyless loopback daemon.Request
▍POST/volumes/{name}/restore
curl '/volumes/{name}/restore' \
-X POST \
-H 'Content-Type: application/json' \
-d '{}'const response = await fetch("/volumes/{name}/restore", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: "{}",
});
const data = await response.json();import requests
response = requests.post(
"/volumes/{name}/restore",
headers={
"Content-Type": "application/json",
},
data="{}",
)
data = response.json()Response
201 Created
{
"attached_to": "string",
"created_at": "2026-01-02T15:04:05Z",
"host_id": "string",
"name": "string",
"size_bytes": 0
}