Skip to content
Helicarrier Developers

Set bucket storage

Resize bucket storage and configure automatic expansion. Read get_service and list_plans for the current size and qualified capacity ladder first. Expansion remains subject to account and storage limits; shrinking is refused.

POST /api/services/{id}/bucket/storage HTTPS
Request & response examples
Request example Server-side
curl --fail-with-body --request POST \
'https://app.helicarrier.xyz/api/services/YOUR_ID/bucket/storage' \
-H "Authorization: Bearer $HELI_API_KEY" \
-H 'Content-Type: application/json' \
--data '{
"storageGb": 4,
"autoExpand": false,
"expandGb": 1,
"expandAtPct": 1
}'
Response example 200
{
"storageGb": 10,
"autoExpand": false,
"expandGb": 5,
"expandAtPct": 80,
"growError": "",
"quotaError": ""
}

Illustrative values · selected fields

Authorization

An account key with access to the resource. Project and service keys do not authorize this operation.

Authorization: Bearer <key> Key setup

Path parameters

id string required

Service ID.

Request body

storageGb integer required

Requested provisioned size in GB.

autoExpand boolean required

Enable automatic expansion.

expandGb integer required

Growth step in GB.

expandAtPct integer required

Usage percentage that triggers expansion.

Response 200

Resize bucket storage and configure automatic expansion. Read get_service and list_plans for the current size and qualified capacity ladder first. Expansion remains subject to account and storage limits; shrinking is refused.

Examples show selected response fields with illustrative values. Your response can contain additional fields.

storageGb integer

New provisioned storage size in GB.

autoExpand boolean
expandGb integer
expandAtPct integer
growError string
quotaError string

Errors

400

Invalid parameters. Check the required fields, types, and resource configuration.

401

The API key is missing, invalid, or revoked.

403

The caller or key scope does not permit this operation.

500

The operation could not be completed. Check resource state before retrying a write.

Error handling and safe retries
ALSO AVAILABLE VIA MCP

set_bucket_storage

Required MCP arguments: id, storageGb, autoExpand, expandGb, expandAtPct. Send path, query, and body fields together as tool arguments.

Connect your agent