Documentation navigation

Buckets

Create a bucket

POST/storage/buckets

Create a new storage bucket for this project.

Parameters

CreateBucketOptions
namestring
Bucket name.
allowOverwrite?boolean
Whether uploading an existing object key is allowed to replace the object.
allowedMimeTypes?string[]
MIME types accepted by this bucket.
attributes?StorageAttributes
User-defined bucket metadata.
fileSizeLimit?number
Maximum direct object upload size in bytes.
location"apac" | "eeur" | "enam" | "oc" | "weur" | "wnam"
Storage location for the bucket.
public?boolean
Whether objects in this bucket are publicly accessible.
signedUrlExpirySeconds?number
Default signed URL expiry in seconds for this bucket.

Returns