JavaScript: Update a bucket | Supabase Docs (original) (raw)

Updates a Storage bucket

Parameters

(Required)
A unique identifier for the bucket you are updating.

(Required)

Examples

Update bucket

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