mirror of
https://github.com/appwrite/appwrite
synced 2026-05-21 16:08:22 +00:00
746 B
746 B
using Appwrite; using Appwrite.Enums; using Appwrite.Models; using Appwrite.Services;
Client client = new Client() .SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key
Storage storage = new Storage(client);
Bucket result = await storage.UpdateBucket( bucketId: "<BUCKET_ID>", name: "", permissions: ["read("any")"], // optional fileSecurity: false, // optional enabled: false, // optional maximumFileSize: 1, // optional allowedFileExtensions: new List(), // optional compression: .None, // optional encryption: false, // optional antivirus: false // optional );