updateBucket()
Updates a new Storage bucket
const { data, error } = await supabase
.storage
.updateBucket('avatars', { public: false })
Parameters
idrequired
string
A unique identifier for the bucket you are updating.
optionsrequired
object
No description provided.
publicrequired
boolean
No description provided.
Properties
Notes
- Policy permissions required:
buckets
permissions:update
objects
permissions: none
Examples
Update bucket
const { data, error } = await supabase
.storage
.updateBucket('avatars', { public: false })