Appwrite icon

Appwrite

Interact with Appwrite API

Actions181

Sites → Update Site

AI-generated

Overview

This node interacts with the Appwrite API to update site configurations. It is useful for managing site settings such as enabling or disabling the site, configuring logging, setting request timeouts, and specifying build commands and output directories. Practical applications include automating site updates in deployment workflows or integrating site management into broader automation processes.

Use Case Examples

  1. Updating a site's name and enabling or disabling it programmatically.
  2. Changing build commands or output directories for a site as part of a CI/CD pipeline.

Properties

Name Meaning
Site ID The unique identifier of the site to update.
Name The new name to assign to the site.
Options Additional optional settings for the site, including enabling the site, enabling logging, request timeout duration, install command, build command, output directory, and site rendering mode.

Output

JSON

  • siteId - The ID of the updated site.
  • name - The updated name of the site.
  • enabled - Whether the site is enabled after update.
  • logging - Whether logging is enabled after update.
  • timeout - Request timeout setting after update.
  • installCommand - Install command used after update.
  • buildCommand - Build command used after update.
  • outputDirectory - Output directory path after update.
  • adapter - Rendering mode of the site after update.

Dependencies

  • Appwrite API key credential for authentication

Troubleshooting

  • Common issues include invalid or missing Site ID, which will cause the update to fail.
  • Incorrect API credentials or endpoint configuration can lead to authentication errors.
  • Timeouts may occur if the request timeout setting is too low or network issues exist.
  • Ensure that required fields like Site ID and Name are provided to avoid validation errors.

Links

Discussion