appwrite/docs/examples/1.3.x/server-dotnet/examples/databases/create-datetime-attribute.md

16 lines
508 B
Markdown
Raw Normal View History

2023-07-10 18:45:46 +00:00
using Appwrite;
using Appwrite.Services;
using Appwrite.Models;
var client = new Client()
.SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
2023-07-10 18:45:46 +00:00
.SetProject("5df5acd0d48c2") // Your project ID
.SetKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
var databases = new Databases(client);
AttributeDatetime result = await databases.CreateDatetimeAttribute(
databaseId: "[DATABASE_ID]",
collectionId: "[COLLECTION_ID]",
key: "",
required: false);