Files
appwrite/docs/examples/1.8.x/server-dotnet/examples/tablesdb/create-enum-column.md
2025-08-23 22:52:20 +12:00

577 B

using Appwrite; using Appwrite.Models; using Appwrite.Services;

Client client = new Client() .SetEndPoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .SetProject("<YOUR_PROJECT_ID>") // Your project ID .SetKey("<YOUR_API_KEY>"); // Your secret API key

TablesDB tablesDB = new TablesDB(client);

ColumnEnum result = await tablesDB.CreateEnumColumn( databaseId: "<DATABASE_ID>", tableId: "<TABLE_ID>", key: "", elements: new List(), required: false, default: "", // optional array: false // optional );