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 n8n node is designed to create a new "Preset" in a Directus system. Presets in Directus are used to save user interface configurations, such as layout preferences or default filters for collections. This node would be beneficial in scenarios where you want to automate the creation of UI presets for different users or roles, for example:
- Automatically setting up default views for new users.
- Batch-configuring layouts and search filters for multiple teams.
- Migrating preset configurations between environments.
Properties
| Name | Meaning |
|---|---|
| Data (JSON) | A partial preset object. This should be provided as JSON and can include fields like user, layout, search, etc., to define the preset. |
Output
The output will contain the created preset object in JSON format, reflecting the data sent and any additional fields populated by Directus (such as IDs or timestamps).
Example output:
{
"id": "generated-preset-id",
"user": "410b5772-e63f-4ae6-9ea2-39c3a31bd6ca",
"layout": "cards",
"search": "Directus",
// ...other preset fields
}
Dependencies
- Requires access to a Directus instance with API credentials that allow creating presets.
- The node may require configuration of authentication (API key, token, or OAuth) depending on your Directus setup.
Troubleshooting
- Invalid JSON: If the "Data (JSON)" property is not valid JSON, the node will fail. Ensure your input is properly formatted.
- Missing Required Fields: If required fields for a preset are missing, Directus may return an error. Refer to the Directus preset object documentation for required fields.
- Authentication Errors: If credentials are incorrect or missing, you may receive authentication or authorization errors from Directus.