Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

File → Update Multiple

AI-generated

Overview

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

  1. Batch update tags for multiple files by providing their keys and new tag data.
  2. 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

Discussion