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
Storage → Update File
AI-generatedOverview
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
- Updating the name of a file in a storage bucket.
- Changing the permissions of a file to control access.
- 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
- Appwrite Storage Update File API - Official documentation for updating files in Appwrite Storage service.