Skip to content
post

Create bucket

Endpoint

posthttps://<REGION>.cloud.appwrite.io/v1/storage/buckets

Description

Required scopes

buckets.write

Authentication

Initialize the Appwrite client with setProject() and a server API key (setKey()). For direct REST calls, send X-Appwrite-Project and X-Appwrite-Key.

Parameters

string
Required
string
Required
array
boolean
boolean
integer
array
enum
boolean
boolean
Status
Content type
201
application/json

Bucket

Name
Type
Description
string
string
string
arrayof string
boolean
string
boolean
integer
arrayof string
string
boolean
boolean
HTTP
POST /v1/storage/buckets HTTP/1.1
Host: cloud.appwrite.io
Content-Type: application/json
X-Appwrite-Response-Format: 1.6.0
X-Appwrite-Project: <YOUR_PROJECT_ID>
X-Appwrite-Key: <YOUR_API_KEY>
{
"bucketId": "<BUCKET_ID>",
"name": "<NAME>",
"permissions": ["read(\"any\")"],
"fileSecurity": false,
"enabled": false,
"maximumFileSize": 1,
"allowedFileExtensions": [],
"compression": "none",
"encryption": false,
"antivirus": false
}