Skip to main content
PATCH
/
api
/
storage
/
buckets
/
{bucketName}
Update Bucket
curl --request PATCH \
  --url https://api.example.com/api/storage/buckets/{bucketName} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "isPublic": true
}
'
{
  "message": "Bucket visibility updated",
  "bucket": "avatars",
  "isPublic": true
}

Authorizations

x-api-key
string
header
required

Path Parameters

bucketName
string
required

Body

application/json
isPublic
boolean

Whether the bucket should be publicly accessible

Example:

true

Response

Bucket visibility updated successfully

message
string
Example:

"Bucket visibility updated"

bucket
string
Example:

"avatars"

isPublic
boolean
Example:

true