Dart Reference v2.0

Update a bucket

Updates a new Storage bucket

  • Policy permissions required:
    • buckets permissions: update
    • objects permissions: none
  • Refer to the Storage guide on how access control works
Parameters
    id
    REQUIRED
    String

    A unique identifier for the bucket you are updating.

    bucketOptions
    REQUIRED
    BucketOptions

    A parameter to optionally make the bucket public.


final String res = await supabase
  .storage
  .updateBucket('avatars', const BucketOptions(public: false));