updateBucket()
Updates a Storage bucket
1const { data, error } = await supabase
2 .storage
3 .updateBucket('avatars', { public: false })
Parameters#
idrequired
string
A unique identifier for the bucket you are updating.
optionsrequired
object
No description provided.
publicrequired
boolean
The visibility of the bucket. Public buckets don't require an authorization token to download objects, but still require a valid token for all other operations.
Properties
Notes#
- RLS policy permissions required:
buckets
table permissions:update
objects
table permissions: none
- Refer to the Storage guide on how access control works
Examples#
Update bucket#
1const { data, error } = await supabase
2 .storage
3 .updateBucket('avatars', { public: false })