Clone a volume
POST/volumes/{name}/clone
Copies the quiescent volume {name} into a new volume. 409 when the target exists or the source is attached to a running sandbox.
path parameters
object
namestringrequiredSource volume to clone (must be quiescent).
Request bodyapplication/json
CloneVolReq
tostringName of the new volume to create.
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}/clone
curl '/volumes/{name}/clone' \
-X POST \
-H 'Content-Type: application/json' \
-d '{}'const response = await fetch("/volumes/{name}/clone", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: "{}",
});
const data = await response.json();import requests
response = requests.post(
"/volumes/{name}/clone",
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
}