Actions24
Overview
This node integrates with the Leanios API to perform various operations on different resources, including Products. Specifically, for the Product resource and the PATCH operation, it updates an existing product by sending a JSON body with the updated fields to the Leanios API.
Common scenarios where this node is useful include:
- Updating product details such as name, price, or stock information in Leanios from within an n8n workflow.
- Automating product data synchronization between Leanios and other systems.
- Triggering product updates based on external events or data changes.
For example, you might use this node to patch a product's description or availability status by providing the product ID and the JSON body containing the fields to update.
Properties
| Name | Meaning |
|---|---|
| Subdomain | The Leanios account subdomain to target (e.g., "dummy"). |
| Request Mode | The mode of request payload; currently supports only jsonBody for POST and PATCH. |
| jsonBody | The JSON object representing the data to send in the request body when creating or updating a product. |
| id | The numeric identifier of the product to update (required for PATCH and getById). |
Output
The node outputs a JSON array containing the response from the Leanios API after performing the requested operation. For the PATCH operation on Product, the output JSON will typically contain the updated product data as returned by the API.
No binary data output is produced by this node.
Dependencies
- Requires an active Leanios API credential with username and password for authentication.
- Needs the Leanios account subdomain to construct the API endpoint URL.
- The node uses standard HTTP requests with JSON payloads to communicate with the Leanios REST API.
Troubleshooting
- Authentication errors: If the API credentials are incorrect or missing, the node will fail with an authentication error. Verify that the correct username and password are configured in the credentials.
- Invalid product ID: Providing a non-existent or invalid product ID for PATCH will result in an error from the API. Ensure the ID corresponds to an existing product.
- Malformed JSON body: If the
jsonBodyproperty contains invalid JSON or fields not accepted by the API, the request may fail. Validate the JSON structure and field names before execution. - Network issues: Connectivity problems to the Leanios API endpoint (constructed using the subdomain) can cause request failures. Check network access and subdomain correctness.
Error messages thrown by the node will generally reflect the underlying HTTP or API error message, aiding in diagnosis.
Links and References
- Leanios API Documentation (example link, replace with actual if available)
- n8n Documentation: Creating Custom Nodes