Actions7
Overview
This node integrates with the MediaCockpit PIM REST API to manage nodes within the system. Specifically, the "Update Multiple Node Attributes" operation allows users to update several attributes of a given node in one request. This is useful for batch updating metadata or properties of nodes without making multiple separate calls.
Common scenarios include:
- Bulk updating product information attributes in a Product Information Management (PIM) system.
- Modifying multiple metadata fields of a digital asset node simultaneously.
- Adjusting various configuration parameters of a node in one atomic operation.
For example, you might update a product node's price, description, and availability status all at once by specifying these attribute changes in the multi-attribute data array.
Properties
| Name | Meaning |
|---|---|
| Node ID | The unique identifier of the node whose attributes you want to update. |
| Multi-Attribute Data | An array of objects describing each attribute update. Each object can specify: |
- attribute (required): The name of the attribute to update. |
|
- value: The new value for the attribute. |
|
- action: The type of update action to perform. Options are "update", "append", or "remove". |
|
- create: A boolean indicating whether to create the attribute if it does not exist (useful for enums). |
Output
The output is an array of JSON objects corresponding to each input item processed. Each JSON object contains the updated node data after applying the attribute changes. The exact structure depends on the MediaCockpit API response but generally includes confirmation of success and the current state of the node's attributes.
No binary data output is indicated for this operation.
Dependencies
- Requires an API key credential for authenticating with the MediaCockpit PIM REST API.
- The node expects the base API URL to be configured via credentials.
- Network access to the MediaCockpit API endpoint is necessary.
Troubleshooting
Common issues:
- Invalid or missing Node ID will cause the update to fail.
- Incorrect attribute names or unsupported actions may result in errors from the API.
- Authentication failures if the API key credential is invalid or expired.
- Malformed JSON in the multi-attribute data property can cause parsing errors.
Error messages:
"Create node failed: <message>"indicates failure during node creation (not directly related to update but part of the same node)."Unknown operation: <operation>"means an unsupported operation was requested.- Network or HTTP errors from the API will propagate as node execution errors.
Resolutions:
- Verify the Node ID exists and is correct.
- Ensure attribute names and actions conform to the API specification.
- Check that the API key credential is valid and has sufficient permissions.
- Validate JSON syntax before inputting multi-attribute data.
Links and References
- MediaCockpit PIM REST API documentation (refer to your organization's internal API docs)
- n8n documentation on creating custom nodes and handling credentials
- General REST API usage best practices