Actions8
Update Multiple Node Attributes
AI-generatedSummary
Update multiple attributes of a MediaCockpit PIM node specified by its Node ID using an array of attribute update objects.
Inputs
- Node ID (required) — The ID of the node whose attributes will be updated.
- Multi-Attribute Data (required) — A JSON array of attribute update objects. Each object must include the 'attribute' field and can optionally include 'value', 'action' (one of "update", "append", or "remove"), and a 'create' boolean indicating if enumeration creation is allowed.
Output shape
A single JSON object added to the original item under the 'updateMultipleResult' key indicating the update result or if the update was skipped due to missing data.
If no attribute data is provided, the operation skips the update and returns a JSON object with a 'skipped' flag and reason. Errors are raised if the Node ID is missing, the multi-attribute data is not valid JSON, the data is not an array, or any attribute object lacks the required 'attribute' field.
Examples
Example 1: Update multiple attributes of a node by providing the node's ID and an array of attribute changes in JSON format.
Set 'Node ID' to the target node's ID, and 'Multi-Attribute Data' to a JSON array like [{"attribute": "color", "value": "red", "action": "update"}, {"attribute": "tags", "value": "new", "action": "append"}].