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
Item → Update Multiple
AI-generatedOverview
This node updates multiple items in a specified collection within Directus. It is useful for batch updating records, such as changing the status of multiple articles or updating multiple user profiles at once. For example, you can update the status of several blog posts to 'published' in one operation.
Use Case Examples
- Batch update the status of multiple items in a content collection.
- Modify multiple user records with new data fields simultaneously.
Properties
| Name | Meaning |
|---|---|
| Data (JSON) | An array of partial item objects specifying the keys of the items to update and the data to apply to those items. |
| Collection Name | The unique name of the parent collection where the items reside. |
Output
JSON
updatedItems- Array of items that were updated with their new values.
Dependencies
- Requires an API key credential for Directus to authenticate and perform updates.
Troubleshooting
- Ensure the collection name is correct and exists in Directus to avoid errors.
- Verify the JSON data structure matches the expected format with keys and data fields.
- Check API credentials and permissions to confirm the node can update items in the specified collection.
Links
- Directus Item Object Documentation - Reference for the item object structure used in the data property.