Create Storage
POST
https://api.oneinfer.ai/v1/storageCreate a new persistent storage volume on the ULA network.
Request body
sizenumberrequiredRequested storage size in GB.
namestringOptional human-readable name for the volume.
Example request
cURL
curl -X POST https://api.oneinfer.ai/v1/storage -H "Authorization: Bearer <ACCESS_TOKEN>" -H "Content-Type: application/json" -d '{
"size": 50,
"name": "my-dataset-volume"
}'Error status codes
| Code | Status | Description |
|---|---|---|
200 | OK | Storage volume created successfully. |
401 | Unauthorized | Missing or invalid Authorization header / Bearer token. |
422 | Unprocessable Entity | Request body failed schema validation (e.g. missing size field). |
500 | Internal Server Error | Unexpected error creating the storage volume. |