appwrite/docs/examples/1.3.x/server-dotnet/examples/databases/update-document.md

14 lines
455 B
Markdown
Raw Normal View History

2023-05-15 07:14:23 +00:00
using Appwrite;
using Appwrite.Models;
2023-05-16 04:54:34 +00:00
var client = new Client()
.SetEndPoint("https://cloud.appwrite.io/v1") // Your API Endpoint
2023-05-15 07:14:23 +00:00
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
2023-05-16 04:54:34 +00:00
var databases = new Databases(client);
2023-05-15 07:14:23 +00:00
Document result = await databases.UpdateDocument(
databaseId: "[DATABASE_ID]",
collectionId: "[COLLECTION_ID]",
documentId: "[DOCUMENT_ID]");