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
Database → Update
AI-generatedOverview
This node interacts with the Appwrite API to perform operations on various resources, specifically here focusing on the 'Database' resource with the 'Update' operation. It allows users to update a database's properties such as its ID, name, and enabled status. This is useful for managing databases programmatically within an Appwrite project, for example, renaming a database or toggling its enabled state.
Use Case Examples
- Updating a database's name and enabling status by specifying the database ID, new name, and enabled flag.
- Automating database management tasks in an Appwrite project through workflow automation.
Properties
| Name | Meaning |
|---|---|
| Database ID | The ID of the database to update, used to identify which database to modify. |
| Name | The new name to assign to the database. |
| Enabled | A boolean flag indicating whether the database should be enabled or disabled. |
Output
JSON
id- The unique identifier of the updated database.name- The updated name of the database.enabled- The updated enabled status of the database.
Dependencies
- Appwrite API endpoint
- Project ID
- API key credential for authentication
Troubleshooting
- Ensure the provided Database ID is correct and exists in the Appwrite project to avoid 'Unknown resource' errors.
- Verify that the API key and project ID credentials are valid and have sufficient permissions to update databases.
- If the node throws an error, check if the 'continueOnFail' option is enabled to handle errors gracefully within workflows.