Files
2024-02-25 00:34:42 +13:00

487 B

import Appwrite

let client = Client() .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint .setProject("5df5acd0d48c2") // Your project ID .setSession("") // The user session to authenticate with

let databases = Databases(client)

let document = try await databases.updateDocument( databaseId: "<DATABASE_ID>", collectionId: "<COLLECTION_ID>", documentId: "<DOCUMENT_ID>", data: [:], // optional permissions: ["read("any")"] // optional )