cURL
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 }
Whether the bucket should be publicly accessible
true
Bucket visibility updated successfully
"Bucket visibility updated"
"avatars"