Create volume from archive
/volumes/from-archive
Creates a new volume pre-populated with content from a tar.gz archive. The archive is streamed directly into the volume's root directory.
Query Parameters
name: string
Volume name
size_gb: number
Maximum size in GB (extraction fails if content exceeds this)
id: optional string
Optional custom volume ID (auto-generated if not provided)
Returns
Create volume from archive
curl http://localhost:8080/volumes/from-archive \
-H 'Content-Type: application/gzip' \
-H "Authorization: Bearer $HYPEMAN_API_KEY" \
-F body=undefined
{
"id": "vol-data-1",
"created_at": "2025-01-15T09:00:00Z",
"name": "my-data-volume",
"size_gb": 10,
"attachments": [
{
"instance_id": "inst-abc123",
"mount_path": "/mnt/data",
"readonly": false
}
]
}
Returns Examples
{
"id": "vol-data-1",
"created_at": "2025-01-15T09:00:00Z",
"name": "my-data-volume",
"size_gb": 10,
"attachments": [
{
"instance_id": "inst-abc123",
"mount_path": "/mnt/data",
"readonly": false
}
]
}