Skip to main content

updateBucket()

Updates a new Storage bucket

const { data, error } = await supabase
.storage
.updateBucket('avatars', { public: false })

Parameters

  • idrequiredstring

    A unique identifier for the bucket you are updating.

  • optionsrequiredobject

    No description provided.

      Properties
    • publicrequiredboolean

      No description provided.

Notes

  • Policy permissions required:
    • buckets permissions: update
    • objects permissions: none

Examples

Update bucket

const { data, error } = await supabase
.storage
.updateBucket('avatars', { public: false })