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
Document → Update
AI-generatedOverview
This node interacts with the Appwrite API to update a document within a specified database and collection. It is useful for scenarios where you need to modify existing document data programmatically, such as updating user profiles, content records, or any structured data stored in Appwrite databases. For example, you can update a document's fields with new values or change its permissions dynamically.
Use Case Examples
- Updating a user profile document with new contact information.
- Modifying a product record in an inventory database to reflect stock changes.
Properties
| Name | Meaning |
|---|---|
| Database ID | The ID of the database where the document resides. |
| Collection ID | The ID of the collection within the database containing the document. |
| Document ID | The ID of the document to update. |
| Data | The JSON data representing the updated content of the document. |
| Permissions | An array of permission strings defining access control for the document. |
Output
JSON
documentId- The ID of the updated document.databaseId- The ID of the database containing the document.collectionId- The ID of the collection containing the document.data- The updated document data as JSON.permissions- The updated permissions array for the document.
Dependencies
- Appwrite API key credential for authentication
Troubleshooting
- Ensure the provided Database ID, Collection ID, and Document ID are correct and exist in your Appwrite project.
- Verify that the API key credential has sufficient permissions to update documents in the specified database and collection.
- Check that the JSON data provided in the 'Data' field is valid and properly formatted.
- If the node throws authentication errors, confirm that the API key and project endpoint are correctly configured.
Links
- Appwrite Update Document API - Official documentation for updating documents in Appwrite databases.