Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

Folder → Update Multiple

AI-generated

Overview

This node operation updates multiple folder objects in the Directus system. It allows users to specify JSON data representing the properties of folders they want to update, such as changing the parent folder of multiple folders at once. This is useful for batch updating folder metadata or reorganizing folder structures efficiently.

Use Case Examples

  1. Updating the parent folder for multiple folders by providing their IDs and the new parent ID in the JSON data.
  2. Modifying other folder properties in bulk, such as renaming or changing folder descriptions, by specifying the relevant fields in the JSON input.

Properties

Name Meaning
Data (JSON) JSON object containing any of the folder object's properties to update for multiple folders. This input is required and should follow the folder object schema as per Directus API documentation.

Output

JSON

  • updatedFolders - Array of folder objects that were updated with the new properties.

Dependencies

  • Requires an API key credential for authenticating with the Directus API.

Troubleshooting

  • Ensure the JSON data is correctly formatted and includes valid folder properties as per the Directus folder object schema.
  • Verify that the user has sufficient permissions to update multiple folders in the Directus system.
  • Common errors include invalid JSON input, unauthorized access, or specifying non-existent folder IDs. Check API response messages for specific error details.

Links

Discussion