Actions8
Overview
The node "MediaCockpit DAM" enables interaction with the MediaCockpit Digital Asset Management (DAM) REST API. It supports operations such as searching assets, listing by ancestor, retrieving asset details by ID, updating attributes, deleting assets, downloading assets or their derivatives, and uploading new assets.
Specifically, the Delete Asset operation removes an asset identified by its Asset ID from the MediaCockpit DAM system.
This node is beneficial in workflows where automated management of digital assets is required, such as:
- Automatically cleaning up unused or outdated assets.
- Integrating asset lifecycle management into broader automation pipelines.
- Managing assets programmatically without manual intervention.
Example use case: A marketing team automates deletion of expired campaign images from the DAM after a campaign ends.
Properties
| Name | Meaning |
|---|---|
| Asset ID | The unique identifier of the asset to delete. Required for operations including delete. |
Note: The provided property definition applies to multiple operations (getById, updateSingleAttribute, updateMultipleAttributes, delete), but here it is relevant for the Delete Asset operation.
Output
- The output JSON contains the original input data merged with any response or debug information related to the delete operation.
- If the operation succeeds, the output typically reflects the updated state or confirmation from the API.
- In case of failure, error details are included if "Continue On Fail" is enabled.
- No binary data output is produced by the Delete Asset operation.
Dependencies
- Requires an API key credential for authenticating with the MediaCockpit DAM REST API.
- The node uses HTTP requests to communicate with the MediaCockpit API endpoint.
- The base URL for the API is configured via credentials.
- No additional external dependencies beyond standard n8n helpers and Node.js buffer utilities.
Troubleshooting
Common issues:
- Invalid or missing Asset ID will cause the delete operation to fail.
- Authentication failures due to incorrect or expired API credentials.
- Network connectivity problems preventing access to the MediaCockpit API.
- Insufficient permissions on the API key to perform delete operations.
Error messages and resolutions:
"Unknown operation: delete": Ensure the operation parameter is correctly set to "delete"."No binary data found...": Not applicable for delete operation but may appear if upload mode is misconfigured in other operations.- API errors returned from MediaCockpit (e.g., 404 Not Found if asset does not exist): Verify the Asset ID is correct.
"Failed to download file from URL...": Not relevant for delete but appears in upload scenarios; check URL validity and network access.
Enable "Continue On Fail" in the node settings to allow workflow continuation despite individual item errors and inspect error details in output.
Links and References
- MediaCockpit DAM API Documentation (hypothetical link, replace with actual if available)
- n8n Documentation on Creating Custom Nodes
- General info on Digital Asset Management systems: https://en.wikipedia.org/wiki/Digital_asset_management