Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

Folder → Create Multiple

AI-generated

Overview

This node operation allows users to create multiple folders in a Directus system by providing an array of folder objects in JSON format. Each folder object must include a 'name' property and can optionally include a 'parent' property to specify the parent folder. This operation is useful for batch folder creation, such as organizing content into multiple categories or sections at once.

Use Case Examples

  1. Creating multiple folders named 'Nature' and 'Cities', where 'Nature' has a specified parent folder ID.
  2. Batch creating folder structures for organizing digital assets or documents.

Properties

Name Meaning
Data (JSON) An array of partial folder objects to create. Each object must include a 'name' and can optionally include a 'parent' folder ID.

Output

JSON

  • folders
    • `` - Array of created folder objects with their properties as returned by the Directus API.

Dependencies

  • Requires connection to a Directus API instance with appropriate permissions to create folders.

Troubleshooting

  • Ensure the JSON array is properly formatted and each folder object includes the required 'name' property.
  • Verify that the parent folder IDs, if provided, exist and are accessible.
  • Check API authentication and permissions to confirm the node can create folders in the Directus system.

Links

Discussion