mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
18 lines
561 B
Markdown
18 lines
561 B
Markdown
using Appwrite;
|
|
using Appwrite.Services;
|
|
using Appwrite.Models;
|
|
|
|
var client = new Client()
|
|
.SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
|
.SetProject("5df5acd0d48c2") // Your project ID
|
|
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
|
|
|
|
var databases = new Databases(client);
|
|
|
|
AttributeEnum result = await databases.UpdateEnumAttribute(
|
|
databaseId: "[DATABASE_ID]",
|
|
collectionId: "[COLLECTION_ID]",
|
|
key: "",
|
|
elements: new List<string> {},
|
|
required: false,
|
|
default: "[DEFAULT]"); |