Actions181
- Account Actions
- Get Account
- Create Account
- Update Email
- Update Name
- Update Password
- Update Phone
- Update Status
- Get Preferences
- Update Preferences
- List Sessions
- Delete Sessions
- Get Session
- Update Session
- Delete Session
- Create Anonymous Session
- Create Email/Password Session
- Create Magic URL Session
- Create OAuth2 Session
- Create Phone Session
- Create Session from Token
- Create JWT
- Create Magic URL
- Create Phone Token
- Create Email Verification
- Update Email Verification
- Create Phone Verification
- Update Phone Verification
- Create Password Recovery
- Update Password Recovery
- Create Recovery
- Update Recovery
- Update MFA
- Create MFA Authenticator
- Update MFA Authenticator
- Delete MFA Authenticator
- Create MFA Challenge
- Update MFA Challenge
- Attribute Actions
- Avatars Actions
- Collection Actions
- Database Actions
- Document Actions
- Functions Actions
- Index Actions
- Locale Actions
- Messaging Actions
- Sites Actions
- Storage Actions
- Teams Actions
- Users Actions
Sites → Update Active Deployment
AI-generatedOverview
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
- Updating the active deployment of a site to a new deployment ID to activate a new version of the site.
- 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.