Leanios icon

Leanios

Actions24

Overview

This node integrates with the Leanios API to perform various operations on different resources, including warehouses. Specifically, for the Warehouse resource with the PATCH operation, it updates an existing warehouse record by sending a JSON body with the desired changes. This is useful in scenarios where you need to modify warehouse details dynamically within an automated workflow, such as updating inventory locations or warehouse metadata.

Practical example: You have a workflow that tracks warehouse data and needs to update warehouse information based on external triggers or data changes, such as changing the warehouse address or capacity.

Properties

Name Meaning
Subdomain The Leanios account subdomain used to construct the API endpoint URL (e.g., "dummy").
Request Mode The mode of the request payload; currently supports only jsonBody for POST and PATCH.
jsonBody The JSON object containing the fields and values to update in the warehouse record.
id The unique identifier of the warehouse to update.

Output

The node outputs a JSON array containing the response from the Leanios API after performing the PATCH operation. The structure of the JSON output corresponds directly to the updated warehouse object returned by the API, reflecting the new state of the warehouse resource.

No binary data output is produced by this node.

Dependencies

  • Requires an active Leanios API credential with username and password for authentication.
  • Needs the Subdomain property to correctly target the Leanios API endpoint.
  • The node uses standard HTTP Basic Authentication with the provided credentials.
  • No additional environment variables are required beyond the configured credentials.

Troubleshooting

  • Common issues:

    • Incorrect or missing id parameter will cause the API call to fail because the endpoint requires a specific warehouse ID.
    • Invalid or malformed JSON in the jsonBody can lead to request errors.
    • Wrong Subdomain value will result in failed API requests due to incorrect URL construction.
    • Authentication failures if the API credentials are invalid or expired.
  • Error messages:

    • Errors thrown by the node typically contain the message returned by the Leanios API. For example, "Not Found" if the warehouse ID does not exist, or "Unauthorized" if credentials are invalid.
    • To resolve, verify the warehouse ID exists, check the JSON body format, confirm the subdomain is correct, and ensure valid API credentials are set up.

Links and References

Discussion