Actions109
- Activity Actions
- Assets Actions
- Authentication Actions
- Collections Actions
- Extensions Actions
- Fields Actions
- Files Actions
- Folders Actions
- Items Actions
- Permissions Actions
- Presets Actions
- Relations Actions
- Revisions Actions
- Roles Actions
- Settings Actions
- Users Actions
- Utilities Actions
- Webhooks Actions
Overview
This node integrates with the Directus API, a headless CMS and data platform. Specifically, for the Presets resource with the Update operation, it allows updating an existing preset object in Directus by specifying its ID and partial data to modify.
Use cases include:
- Modifying layout or configuration presets stored in Directus.
- Updating UI or system presets dynamically as part of an automation workflow.
- Adjusting saved configurations without manual intervention.
Example: Update a preset's layout style by providing the preset ID and a JSON object with the new layout property.
Properties
| Name | Meaning |
|---|---|
| ID | The primary key (unique identifier) of the preset to update. |
| Data (JSON) | A partial JSON object representing the preset fields to update. This should conform to the Directus preset object structure. |
Output
The node outputs the updated preset object returned from the Directus API in the json field of the output item. This includes all fields of the preset after the update.
No binary data is output for this operation.
Dependencies
- Requires a valid connection to a Directus instance via an API key credential configured in n8n.
- The node uses the Directus REST API endpoints for presets.
- No additional external dependencies beyond the Directus API and credentials.
Troubleshooting
- Invalid ID or Preset Not Found: If the provided preset ID does not exist, the API will return an error. Verify the ID is correct.
- Malformed JSON Data: The "Data (JSON)" input must be valid JSON matching the expected preset schema. Invalid JSON or unsupported fields will cause errors.
- Authentication Errors: Ensure the API key credential has sufficient permissions to update presets.
- Network Issues: Connectivity problems to the Directus server will result in request failures.
- API Rate Limits: Excessive requests may be throttled by the Directus API.
To resolve errors, check the error message returned by the node, verify inputs, and confirm API access rights.