Actions118
- Item Actions
- Activity Actions
- Asset Actions
- Authentication Actions
- Collection Actions
- Extension Actions
- Field Actions
- File Actions
- Folder Actions
- Permission Actions
- Preset Actions
- Relation Actions
- Revision Actions
- Role Actions
- Server Actions
- Setting Actions
- User Actions
- Utility Actions
- Webhook Actions
Folder → Create Multiple
AI-generatedOverview
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
- Creating multiple folders named 'Nature' and 'Cities', where 'Nature' has a specified parent folder ID.
- 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
- Directus Folder Object Documentation - Reference for the folder object structure used in the JSON input.