volumes
Create persistent volume
Creates a new persistent storage volume that can be attached to sandboxes. Volumes must be created in a specific region and can only attach to sandboxes in the same region.
post/volumes
Request
- Base URLhttps://api.blaxel.ai/v0
- Auth
- OAuth 2Authorization code/oauth/authorizeClient credentialsToken URL/oauth/tokenScopesvolumes:create
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"events": [
{
"message": "Deployment successful",
"revision": "rev-abc123",
"status": "DEPLOYED",
"time": "2025-01-15T10:30:00Z",
"type": "deployment"
}
],
"metadata": {
"displayName": "My Resource",
"externalId": "my-session-123",
"name": "my-resource"
},
"spec": {
"region": "us-pdx-1",
"size": 1024,
"template": "mytemplate:latest"
},
"state": {
"attachedTo": "sandbox:my-sandbox"
}
}Response
successful operation
Example response
{
"events": [
{
"message": "Deployment successful",
"revision": "rev-abc123",
"status": "DEPLOYED",
"time": "2025-01-15T10:30:00Z",
"type": "deployment"
}
],
"metadata": {
"displayName": "My Resource",
"externalId": "my-session-123",
"name": "my-resource"
},
"spec": {
"region": "us-pdx-1",
"size": 1024,
"template": "mytemplate:latest"
},
"state": {
"attachedTo": "sandbox:my-sandbox"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.