Update a bucket
Updates a new Storage bucket
- Policy permissions required:
buckets
permissions:update
objects
permissions: none
Parameters
id
REQUIRED
stringA unique identifier for the bucket you are updating.
options
REQUIRED
objectpublic
REQUIRED
boolean
const { data, error } = await supabase
.storage
.updateBucket('avatars', { public: false })