Appwrite icon

Appwrite

Interact with Appwrite API

Actions181

Storage → Update File

AI-generated

Overview

This node interacts with the Appwrite API to update files stored in a specified storage bucket. It is useful for scenarios where you need to modify existing files in your cloud storage, such as changing file metadata, updating permissions, or renaming files. For example, you can update the name of a file or adjust its access permissions programmatically within an automation workflow.

Use Case Examples

  1. Updating the name of a file in a storage bucket.
  2. Changing the permissions of a file to control access.
  3. Modifying file metadata while keeping the file content unchanged.

Properties

Name Meaning
Bucket ID The ID of the storage bucket where the file is located.
File ID The ID of the file to be updated.
Permissions An array of permission strings to set the file's access control.
Name The new name for the file.

Output

JSON

  • fileId - The unique identifier of the updated file.
  • bucketId - The identifier of the storage bucket containing the file.
  • name - The updated name of the file.
  • permissions - The updated permissions array for the file.
  • updatedAt - Timestamp indicating when the file was last updated.

Dependencies

  • Appwrite API key credential for authentication

Troubleshooting

  • Ensure the provided Bucket ID and File ID are correct and exist in your Appwrite project.
  • Verify that the API key has sufficient permissions to update files in the specified bucket.
  • Check the format of the permissions JSON array to avoid syntax errors.
  • If the node throws authentication errors, confirm that the API key and project ID are correctly configured.

Links

Discussion