```swift import Appwrite let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("") // Your project ID let storage = Storage(client) let file = try await storage.updateFile( bucketId: "", fileId: "", name: "", // optional permissions: [Permission.read(Role.any())] // optional ) ```