Javascript Reference v1.0

Update a bucket

Updates a new Storage bucket

  • Policy permissions required:
    • buckets permissions: update
    • objects permissions: none
Parameters
    id
    REQUIRED
    string

    A unique identifier for the bucket you are updating.

    options
    REQUIRED
    object

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