Was this helpful?
/buckets
curl -L \ --url 'https://beta.data.banyan.computer/api/v1/buckets' \ --header 'Authorization: Bearer JWT'
[ { "id": "text", "owner_id": "text", "name": "text", "type": "BucketType", "storage_class": "StorageClass", "updated_at": "2025-03-13T17:49:11.763Z" } ]
The type of the bucket
backup
interactive
The storage class of the bucket
hot
warm
cold
curl -L \ --request POST \ --url 'https://beta.data.banyan.computer/api/v1/buckets' \ --header 'Authorization: Bearer JWT' \ --header 'Content-Type: application/json' \ --data '{ "name": "text", "type": "backup", "storage_class": "hot", "initial_bucket_key_pem": "text" }'
{ "id": "text", "name": "text", "type": "backup", "storage_class": "hot", "initial_bucket_key": { "id": "text", "approved": true, "fingerprint": "text" } }
/buckets/{bucket_id}
The unique identifier for the bucket
curl -L \ --url 'https://beta.data.banyan.computer/api/v1/buckets/{bucket_id}' \ --header 'Authorization: Bearer JWT'
{ "id": "text", "owner_id": "text", "name": "text", "type": "BucketType", "storage_class": "StorageClass", "updated_at": "2025-03-13T17:49:11.763Z" }
The unique identifier for the bucket to be updated
curl -L \ --request PUT \ --url 'https://beta.data.banyan.computer/api/v1/buckets/{bucket_id}' \ --header 'Authorization: Bearer JWT' \ --header 'Content-Type: application/json' \ --data '{ "name": "text", "replicas": 1 }'
No body
The unique identifier for the bucket to be deleted
curl -L \ --request DELETE \ --url 'https://beta.data.banyan.computer/api/v1/buckets/{bucket_id}' \ --header 'Authorization: Bearer JWT'