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 → Update
AI-generatedOverview
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
- Updating a preset's layout to 'tabular' by providing the preset ID and new layout data in JSON format.
- 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 presetdata- 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
- Directus Preset Object Documentation - Reference for the structure and fields of a preset object in Directus