MediaCockpit PIM icon

MediaCockpit PIM

Interact with MediaCockpit PIM REST API

Overview

This node integrates with the MediaCockpit PIM REST API to manage nodes within the MediaCockpit Product Information Management system. It supports various operations such as creating, retrieving, updating, searching, listing, and deleting nodes.

The Delete Node operation specifically allows users to delete a node by its ID. This is useful for cleaning up obsolete or incorrect data entries in the PIM system.

Practical example:
A user wants to remove a product category node that is no longer relevant. By providing the node's ID to this node with the Delete operation selected, the node will be deleted from the MediaCockpit PIM system.

Properties

Name Meaning
Node ID The unique identifier of the node to delete

Output

The output is an array of JSON objects corresponding to each input item processed. For the Delete Node operation, the output JSON includes:

  • success: A boolean indicating if the deletion was successful (true).
  • nodeType: The type of the node that was targeted for deletion.
  • parentNodeId: The parent node ID associated with the node (if applicable).
  • externalKey: Any external key associated with the node.
  • response: The raw response from the MediaCockpit API after the delete request.
  • _debug_create_url: The URL used for the API call (for debugging purposes).
  • _debug_body: The body sent in the HTTP request (for debugging purposes).

Note: The debug fields are included to help troubleshoot requests but may not be present for all operations.

The node does not output binary data.

Dependencies

  • Requires an API key credential to authenticate with the MediaCockpit PIM REST API.
  • The node expects the base API URL to be configured via credentials.
  • Uses HTTP requests to communicate with the MediaCockpit API endpoints.

Troubleshooting

  • Common issues:

    • Invalid or missing Node ID: The node requires a valid node ID to perform deletion. Ensure the Node ID property is correctly set.
    • Authentication failures: Verify that the API key credential is valid and has sufficient permissions.
    • Network or endpoint errors: Check connectivity to the MediaCockpit API endpoint and ensure the URL is correct.
  • Error messages:

    • "Create node failed: <message>": Indicates failure during node creation; check the message for details.
    • "Unknown operation: <operation>": Means an unsupported operation was requested; verify the operation name.
    • Errors thrown by the MediaCockpit API will be propagated; review the API response for specific error codes or messages.
  • To continue processing other items even if one fails, enable the "Continue On Fail" option in the node settings.

Links and References

Discussion