appwrite/docs/examples/1.8.x/server-dotnet/examples/sites/create-template-deployment.md
Chirag Aggarwal 10171c80da Update SDK generator and regenerate Java/Kotlin documentation examples
Updated SDK generator to fix Java examples Kotlin syntax issues and regenerated all affected documentation examples across multiple SDK versions.
2025-11-25 11:08:11 +05:30

620 B

using Appwrite; using Appwrite.Enums; 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

Sites sites = new Sites(client);

Deployment result = await sites.CreateTemplateDeployment( siteId: "<SITE_ID>", repository: "", owner: "", rootDirectory: "<ROOT_DIRECTORY>", type: TemplateReferenceType.Branch, reference: "", activate: false // optional );