Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

Preset → Create Multiple

AI-generated

Overview

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

  1. Creating multiple presets for different collections and users with specific layouts and search filters.
  2. 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

Discussion