appwrite/docs/examples/1.5.x/server-dotnet/examples/storage/update-bucket.md
2025-04-22 17:02:33 +04:00

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 );