Appwrite icon

Appwrite

Interact with Appwrite API

Actions181

Sites → Update Active Deployment

AI-generated

Overview

This node interacts with the Appwrite API to update the active deployment of a specified site. It is useful for managing site deployments programmatically, allowing users to switch the active deployment to a different version or configuration. For example, a user can update the active deployment of a website hosted on Appwrite to roll out new features or fixes without manual intervention.

Use Case Examples

  1. Updating the active deployment of a site to a new deployment ID to activate a new version of the site.
  2. Switching back to a previous deployment if the current one has issues.

Properties

Name Meaning
Site ID The ID of the site for which the active deployment is to be updated.
Deployment ID The ID of the deployment to set as the active deployment for the specified site.

Output

JSON

  • siteId - The ID of the site whose active deployment was updated.
  • deploymentId - The ID of the deployment that was set as active.
  • status - The status or result of the update operation, indicating success or failure.

Dependencies

  • Appwrite API endpoint, project ID, and API key credentials are required to authenticate and interact with the Appwrite service.

Troubleshooting

  • Ensure that the Site ID and Deployment ID provided are correct and exist in the Appwrite project.
  • Verify that the API key has sufficient permissions to update site deployments.
  • Check network connectivity to the Appwrite endpoint.
  • Common error messages may include authentication failures, invalid IDs, or permission denied errors. Resolving these involves verifying credentials, IDs, and permissions.

Discussion