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. Specifically, the "Get Node by ID" operation retrieves detailed information about a single node identified by its unique ID.

Common scenarios for this node include:

  • Fetching metadata or attributes of a specific product or category node in the PIM.
  • Retrieving node details to use as input for further processing or decision-making workflows.
  • Integrating MediaCockpit PIM data into other systems by extracting node information dynamically.

For example, a user might want to get all details of a product node by its ID to update an external catalog or trigger notifications based on product changes.

Properties

Name Meaning
Node ID The unique identifier of the node to retrieve from MediaCockpit PIM.
Build JSON Optional custom JSON configuration to control the output format of the retrieved node data. Leave as {} to use the default output format.

Output

The node outputs an array of JSON objects representing the retrieved node(s). Each item contains the full details of the requested node as returned by the MediaCockpit PIM API.

  • The json field includes all node attributes and metadata fetched from the API.
  • If the "Build JSON" property is used, the output structure may be customized accordingly.
  • This node does not output binary data.

Dependencies

  • Requires an active connection to the MediaCockpit PIM REST API.
  • Needs an API authentication token or credential configured in n8n to authorize requests.
  • The base API URL and session management are handled internally by the node's helper methods.

Troubleshooting

  • Invalid Node ID: If the provided Node ID does not exist or is malformed, the API will likely return an error. Verify the Node ID is correct and exists in the MediaCockpit system.
  • Authentication Errors: Ensure that the API credentials are valid and have sufficient permissions to access node data.
  • Network Issues: Connectivity problems to the MediaCockpit API endpoint can cause request failures. Check network settings and API availability.
  • Malformed Build JSON: Providing invalid JSON in the "Build JSON" property may cause errors or unexpected output. Validate JSON syntax before using.

Common error messages:

  • "Unknown operation": Indicates an unsupported operation was selected; ensure "getById" is chosen.
  • "Create node failed": Not relevant for this operation but indicates issues when creating nodes.

Links and References

Discussion