JavaScript: Update a bucket

Updates a Storage bucket

Parameters

Examples

Update bucket

const \{ data, error \} = await supabase
  .storage
  .updateBucket('avatars', \{
    public: false,
    allowedMimeTypes: ['image/png'],
    fileSizeLimit: 1024
  \})