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 Site
AI-generatedOverview
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
- Updating a site's name and enabling or disabling it programmatically.
- 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
- Appwrite Sites API Documentation - Official documentation for updating sites using the Appwrite API.