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
|
|
|
|
|
|
|
|
AttributeFloat result = await databases.UpdateFloatAttribute(
|
|
|
|
|
databaseId: "[DATABASE_ID]",
|
|
|
|
|
collectionId: "[COLLECTION_ID]",
|
|
|
|
|
key: "",
|
|
|
|
|
required: false,
|
|
|
|
|
min: 0,
|
|
|
|
|
max: 0,
|
|
|
|
|
default: 0);
|