appwrite/docs/examples/1.8.x/server-deno/examples/sites/update-variable.md
2025-08-26 15:40:03 +12:00

512 B

import { Client, Sites } from "https://deno.land/x/appwrite/mod.ts";

const 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

const sites = new Sites(client);

const response = await sites.updateVariable({ siteId: '<SITE_ID>', variableId: '<VARIABLE_ID>', key: '', value: '', // optional secret: false // optional });