Actions111
- Item Actions
- Webhook Actions
- Collection Actions
- File Actions
- Activity Actions
- Asset Actions
- Authentication Actions
- Extension Actions
- Field Actions
- Folder Actions
- Permission Actions
- Preset Actions
- Relation Actions
- Revision Actions
- Role Actions
- Setting Actions
- User Actions
- Utility Actions
Overview
This node updates multiple folder records in a Directus instance. It is useful when you need to modify several folders at once, such as changing their parent folder or updating other folder properties in bulk. For example, you might use this node to reorganize your file structure by moving multiple folders under a new parent or to update metadata for several folders simultaneously.
Properties
| Name | Type | Meaning |
|---|---|---|
| Data (JSON) | json | A JSON object containing the properties to update for each folder. Follows the Directus folder object schema. Example: { "data": { "parent": "d97c2e0e-293d-4eb5-9e1c-27d3460ad29d" } } |
Output
The output will be a JSON object reflecting the result of the update operation for the specified folders. The structure typically includes the updated folder objects with their new properties as returned by the Directus API.
Dependencies
- Requires access to a Directus instance.
- Authentication (such as an API key or credentials) must be configured in n8n for the Directus node.
Troubleshooting
- Invalid JSON in "Data (JSON)": Ensure that the input is valid JSON and matches the expected folder object structure.
- Missing Required Fields: If required fields are missing in the data, the Directus API may return an error. Refer to the Directus folder object documentation for required properties.
- Permission Errors: Make sure the API credentials used have permission to update folders in Directus.
- Network/Connection Issues: Verify that n8n can reach your Directus instance.