Actions13
Machine → Set machine attribute value
AI-generatedOverview
This node interacts with the Tulip API to set a specific attribute value on a machine. It is useful in scenarios where you want to programmatically update machine attributes within Tulip, such as changing status indicators, updating configuration parameters, or logging operational data directly on a machine entity.
Practical examples include:
- Automatically updating a machine's operational state based on external sensor data.
- Setting custom flags or notes on machines during an automated workflow.
- Adjusting machine parameters dynamically as part of a production line automation process.
Properties
| Name | Meaning |
|---|---|
| Machine Name or ID | Select a machine from a list or specify its ID using an expression. This identifies which machine the attribute will be set on. |
| Attribute ID | The unique identifier of the machine attribute to update. This must correspond to an existing attribute defined in Tulip. |
| Value | The new value to assign to the specified machine attribute. |
Output
The node outputs JSON data representing the result of the attribute update operation. Typically, this includes confirmation of the updated attribute and possibly the updated machine state. The exact structure depends on the Tulip API response but generally confirms success or failure of the update.
No binary data output is involved.
Dependencies
- Requires an active connection to the Tulip API via an API key credential.
- The node depends on the Tulip API being accessible and the user having permissions to modify machine attributes.
- The "Machine Name or ID" property uses a dynamic options loader to fetch available machines from Tulip.
Troubleshooting
Common issues:
- Invalid or missing machine ID: Ensure the machine exists and the ID is correct.
- Incorrect attribute ID: Verify the attribute ID matches one defined in Tulip for the target machine.
- Authentication errors: Confirm that the API key credential is valid and has sufficient permissions.
- Network or API downtime: Check connectivity and Tulip service status.
Error messages:
- "Machine not found": The specified machine ID does not exist or is inaccessible.
- "Attribute ID invalid": The attribute ID does not match any known attribute for the machine.
- "Unauthorized": API key is invalid or lacks permission.
Resolving these typically involves verifying input values, checking credentials, and ensuring network access.
Links and References
- Tulip Machine Attributes API Documentation
- n8n Expressions Documentation (for specifying machine IDs dynamically)