Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

Collection → Update

AI-generated

Overview

This node updates a specified collection in the Directus system. It is useful for modifying metadata or other properties of an existing collection by specifying the collection name and the fields to update. For example, you can update the metadata of a collection to add notes or other JSON-formatted information.

Use Case Examples

  1. Updating the metadata of a collection named 'articles' to include a note about customer quotes.
  2. Changing properties of a collection dynamically based on workflow conditions.

Properties

Name Meaning
Collection Name Unique name of the collection to update, selected from available collections.
Update Fields Fields to update in the collection, including metadata in JSON format.

Output

JSON

  • collection - The name of the collection that was updated.
  • updatedFields
    • meta - The updated metadata of the collection in JSON format.

Dependencies

  • Directus API access with appropriate permissions to update collections.

Troubleshooting

  • Ensure the collection name is valid and exists in the Directus instance; otherwise, the update will fail.
  • Verify that the JSON provided in the Meta field is correctly formatted to avoid parsing errors.
  • Check API authentication and permissions to confirm the node can perform update operations on collections.

Links

Discussion