Hanzo AI
OpenapiSpace

Create drives

Makes a new drive in a space and answers 201 with it.

POST /v1/space/{space}/drives

Addresshttps://api.hanzo.ai/v1/space/{space}/drives
MethodPOST
Operationpost_space_by_space_drives
AuthAuthorization: Bearer $HANZO_API_KEY

Makes a new drive in a space and answers 201 with it.

A drive is a PREFIX and not a bucket, so making one writes a zero-byte marker at "<name>/" — which is what makes an empty drive visible to a listing that has no other key to find. A name already taken in the space is 409.

Billed per call: the balance is checked BEFORE anything is touched, so an unfunded org is refused with nothing created, and the debit lands only once the drive exists.

Request

3 fields, body application/json (required).

FieldInTypeRequiredDescription
spacepathstringyesSpace is the space to create the drive in, from the path.
namebodystringName is the drive's name, matching the same shape a space name does.
spacebodystringSpace is the space to create the drive in, from the path.

Response

StatusBodyMeaning
201space.driveItemcreated
defaultproblem-detailsrefused

201 body — 1 field.

FieldInTypeAlwaysDescription
namebodystringName is the drive's name — the first segment of every key it holds.

Failure carries the platform error shape — see Errors.

Examples

hanzo space drives create <space>

Space API · All Hanzo APIs · Interactive reference

How is this guide?

On this page