Actions118
- Item Actions
- Activity Actions
- Asset Actions
- Authentication Actions
- Collection Actions
- Extension Actions
- Field Actions
- File Actions
- Folder Actions
- Permission Actions
- Preset Actions
- Relation Actions
- Revision Actions
- Role Actions
- Server Actions
- Setting Actions
- User Actions
- Utility Actions
- Webhook Actions
File → Update Multiple
AI-generatedOverview
This node operation updates multiple file records in a system by specifying an array of primary keys and the data to update for those files. It is useful for batch updating file metadata or properties, such as tags, for multiple files at once. For example, you can update the tags of several files to categorize them under 'cities'.
Use Case Examples
- Batch update tags for multiple files by providing their keys and new tag data.
- Modify metadata for a group of files in a single operation to maintain consistency.
Properties
| Name | Meaning |
|---|---|
| Update Data (JSON) | JSON object containing 'keys' (array of primary keys of files to update) and 'data' (properties of the file object to update). |
Output
JSON
updatedFiles- Array of updated file objects reflecting the changes made.
Dependencies
- Requires API access to the file management system with appropriate permissions to update file records.
Troubleshooting
- Ensure the 'keys' array contains valid primary keys of existing files; invalid keys will cause update failures.
- The 'data' object must conform to the file object schema; invalid properties or data types may cause errors.
- API authentication errors may occur if credentials are missing or invalid; verify API key or token.
Links
- Directus File Object API Reference - Documentation for the file object properties that can be updated.