Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

Folder → Update

AI-generated

Overview

This node updates a folder object in the Directus system. It is useful for modifying folder details such as the folder's name or its parent folder, allowing users to organize and manage folder hierarchies dynamically. For example, you can rename a folder or move it under a different parent folder to restructure your file organization.

Use Case Examples

  1. Update the name of a folder by specifying its unique ID and the new name.
  2. Change the parent folder of an existing folder to nest it under a different folder.

Properties

Name Meaning
ID Unique ID of the folder object to update.
JSON/RAW Parameters Determines whether the update parameters are provided as structured UI fields or as raw JSON input.
Body Parameters The body parameters for the update operation provided as JSON or RAW input when JSON/RAW mode is enabled.
Update Fields Collection of fields to update when not using JSON/RAW mode, including folder name and parent folder ID.

Output

JSON

  • id - The unique identifier of the updated folder.
  • name - The updated name of the folder.
  • parent - The unique identifier of the parent folder after update.

Dependencies

  • Requires connection to Directus API with appropriate authentication credentials.

Troubleshooting

  • Ensure the folder ID provided is valid and exists in the system; otherwise, the update will fail.
  • If using JSON/RAW parameters, ensure the JSON is well-formed and matches the expected schema for folder updates.
  • The 'Name' field cannot be empty or null when updating via structured fields; provide a valid name to avoid errors.

Discussion