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
Collection → Update
AI-generatedOverview
This node updates a specified collection in the Directus system. It is useful for modifying metadata or other properties of an existing collection by specifying the collection name and the fields to update. For example, you can update the metadata of a collection to add notes or other JSON-formatted information.
Use Case Examples
- Updating the metadata of a collection named 'articles' to include a note about customer quotes.
- Changing properties of a collection dynamically based on workflow conditions.
Properties
| Name | Meaning |
|---|---|
| Collection Name | Unique name of the collection to update, selected from available collections. |
| Update Fields | Fields to update in the collection, including metadata in JSON format. |
Output
JSON
collection- The name of the collection that was updated.updatedFieldsmeta- The updated metadata of the collection in JSON format.
Dependencies
- Directus API access with appropriate permissions to update collections.
Troubleshooting
- Ensure the collection name is valid and exists in the Directus instance; otherwise, the update will fail.
- Verify that the JSON provided in the Meta field is correctly formatted to avoid parsing errors.
- Check API authentication and permissions to confirm the node can perform update operations on collections.
Links
- Directus Collections API Reference - Official documentation for managing collections in Directus, including update operations.