Skip to main content
POST
Create a volume
CLI equivalent: ornn volumes create --name training-data --idempotency-key <key> --format json. Creating a volume of any kind, including a copy, a shared filesystem, or a connection to an existing external bucket, requires an approved organization and a saved payment card. An organization still under review receives HTTP 403 with code set to not_approved. Without a card, the API returns HTTP 409 with detail.code set to payment_method_required. Add a card in Billing, then retry. If payment details cannot be checked, creation is blocked until the check succeeds.

Authorizations

Authorization
string
header
required

Create an organization API key in Account Settings > Developer. Do not send this key to the Kubernetes API server.

Body

application/json
name
string
required

Volume name.

source_drive_id
string<uuid>

A volume of your organization to duplicate. Its files are copied in the background.

Response

The new volume.

A volume. Responses can include additional fields; ignore fields you do not recognize.

id
string<uuid>
required
name
string
required
status
string
required

active for a usable volume.

source_drive_id
string<uuid> | null

The volume this one was duplicated from.

size_bytes
integer<int64>

Measured size. It can lag writes from mounted machines.

file_count
integer | null
file_tree
object[]

A preview of recently updated files. Use List volume files for a complete listing.

file_tree_status
string
content_epoch
integer<int64>

Increases whenever the volume's files change.

source
object
file_capabilities
object
active_mount
object | null

The volume's mount on one VM or Bare Metal node.

active_mounts
object[]
created_at
string<date-time>
updated_at
string<date-time>