Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

Folder → Create

AI-generated

Overview

This node operation creates a new folder in a system that supports folder management, such as a content management or file organization platform. It is useful for automating the creation of folder structures, organizing files, or managing hierarchical data. For example, it can be used to create a new project folder within a parent directory or to automate folder creation based on user input or external triggers.

Use Case Examples

  1. Creating a new folder named 'Nature' in the root directory.
  2. Creating a nested folder by specifying a parent folder ID to organize files hierarchically.

Properties

Name Meaning
Name The name of the folder to be created. This is a required string input that specifies the folder's title.
JSON/RAW Parameters A boolean flag indicating whether the body parameters should be provided as JSON/RAW input instead of using the UI key-value pairs.
Body Parameters The body parameters for the folder creation request provided as JSON or RAW input. This is required if JSON/RAW Parameters is set to true.
Additional Fields Optional additional fields for folder creation, such as specifying a parent folder ID to create nested folders.

Output

JSON

  • id - The unique identifier of the newly created folder.
  • name - The name of the created folder.
  • parent - The unique identifier of the parent folder if specified, indicating folder hierarchy.

Dependencies

  • An API key credential or authentication token for the system managing folders.

Troubleshooting

  • Ensure the 'Name' property is provided and is not empty, as it is required for folder creation.
  • If using JSON/RAW Parameters, validate the JSON syntax to avoid parsing errors.
  • Check that the parent folder ID, if provided, exists and is accessible to avoid errors related to invalid parent references.
  • Common error messages may include 'Missing required field: name' or 'Invalid parent folder ID'. Resolving these involves providing the required fields correctly and verifying parent folder existence.

Discussion