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
Preset → Create Multiple
AI-generatedOverview
This node operation allows users to create multiple preset objects in the Directus system in a single execution. It is useful for batch creation of presets, which can define user-specific configurations such as collection views, layouts, and search parameters. For example, a user can create multiple presets for different collections and layouts at once, streamlining the setup process in Directus.
Use Case Examples
- Creating multiple presets for different collections and users with specific layouts and search filters.
- Batch importing user presets to configure their Directus interface preferences.
Properties
| Name | Meaning |
|---|---|
| Data (JSON) | An array of partial preset objects to be created in Directus. Each object can include fields like collection, user, layout, and search to define the preset's configuration. |
Output
JSON
id- The unique identifier of each created preset.collection- The collection associated with the preset.user- The user for whom the preset is created.layout- The layout configuration of the preset.search- The search filter applied in the preset.
Dependencies
- Directus API with appropriate authentication credentials
Troubleshooting
- Ensure the JSON data array is correctly formatted and contains valid preset fields as per Directus API requirements.
- Authentication errors may occur if API credentials are missing or invalid; verify the API key or token used for Directus access.
- API rate limits or permission issues might prevent creation of presets; check user permissions and API limits.
Links
- Directus Preset Object Documentation - Official documentation describing the structure and fields of preset objects in Directus.