Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

Preset → Update

AI-generated

Overview

This node updates an existing preset in the Directus system by specifying the preset's primary key (ID) and providing partial preset data in JSON format. It is useful for modifying preset configurations dynamically, such as changing layout settings or other preset attributes without replacing the entire preset object.

Use Case Examples

  1. Updating a preset's layout to 'tabular' by providing the preset ID and new layout data in JSON format.
  2. Modifying specific fields of a preset object to customize its behavior or appearance in the Directus interface.

Properties

Name Meaning
ID Primary key of the preset to update, used to identify which preset to modify
Data (JSON) Partial preset object data in JSON format to update the preset with new or changed values

Output

JSON

  • id - The unique identifier of the updated preset
  • data - The updated preset object reflecting the changes made

Dependencies

  • Directus API or service endpoint for managing presets

Troubleshooting

  • Ensure the provided ID corresponds to an existing preset; otherwise, the update will fail.
  • Validate the JSON data format to avoid syntax errors or invalid preset fields.
  • Check API authentication and permissions to confirm the node has rights to update presets.

Links

Discussion