Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

Item → Update Multiple

AI-generated

Overview

This node updates multiple items in a specified collection within Directus. It is useful for batch updating records, such as changing the status of multiple articles or updating multiple user profiles at once. For example, you can update the status of several blog posts to 'published' in one operation.

Use Case Examples

  1. Batch update the status of multiple items in a content collection.
  2. Modify multiple user records with new data fields simultaneously.

Properties

Name Meaning
Data (JSON) An array of partial item objects specifying the keys of the items to update and the data to apply to those items.
Collection Name The unique name of the parent collection where the items reside.

Output

JSON

  • updatedItems - Array of items that were updated with their new values.

Dependencies

  • Requires an API key credential for Directus to authenticate and perform updates.

Troubleshooting

  • Ensure the collection name is correct and exists in Directus to avoid errors.
  • Verify the JSON data structure matches the expected format with keys and data fields.
  • Check API credentials and permissions to confirm the node can update items in the specified collection.

Links

Discussion