Appwrite icon

Appwrite

Interact with Appwrite API

Actions181

Document → Update

AI-generated

Overview

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

  1. Updating a user profile document with new contact information.
  2. 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

Discussion