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
The "Update Multiple" operation for the "Item" resource in this custom n8n node allows users to update several items at once within a specified collection in Directus. This is particularly useful when you need to modify the same fields across multiple records, such as bulk updating statuses, categories, or other attributes. For example, you could use this node to set the status of multiple articles to "published" in one workflow step.
Properties
| Name | Meaning |
|---|---|
| Data (JSON) | An array of partial item objects. You provide an object with a keys array (IDs of items to update) and a data object (fields and values to update). Example:{ |
| Collection Name | Unique name of the parent collection where the items reside. You select from available collections (e.g., "articles"). |
Output
- The output will be a JSON object reflecting the result of the bulk update operation.
- Typically, it includes information about the updated items, such as their IDs and the new field values.
- No binary data is produced by this operation.
Dependencies
- Requires access to a Directus instance.
- Authentication (such as API keys or credentials) must be configured in n8n for the node to interact with Directus.
- The node depends on the correct setup of collections and permissions in Directus.
Troubleshooting
Common Issues:
- Invalid collection name: Ensure the collection exists in your Directus instance.
- Malformed JSON in "Data (JSON)": Double-check the structure matches the expected format.
- Insufficient permissions: Make sure the API credentials have rights to update items in the target collection.
Error Messages:
"Collection not found": The specified collection does not exist."Invalid item keys": Thekeysarray contains IDs that do not exist or are inaccessible."Malformed request body": The JSON provided in "Data (JSON)" is not valid or missing required fields.