Leanios icon

Leanios

Actions24

Overview

This node integrates with the Leanios API to perform various operations on different resources such as Product, Transaction, Production, Workorder, Order, and Warehouse. Specifically for the Production resource with the PATCH operation, it updates an existing production record identified by its ID. The update data is provided in JSON format.

Common scenarios include:

  • Modifying details of a production order or batch in a manufacturing workflow.
  • Adjusting production parameters or statuses dynamically based on external triggers.
  • Automating updates to production records from other systems or processes.

Example: You might use this node to patch a production record's status or quantities after receiving updated information from a factory floor system.

Properties

Name Meaning
Subdomain The Leanios account subdomain to target (e.g., "dummy").
Request Mode The mode of sending the request body; currently supports only jsonBody for PATCH/POST.
id The unique numeric identifier of the production record to update (required for PATCH).
jsonBody The JSON object containing fields and values to update in the production record.

Output

The node outputs a JSON array containing the response from the Leanios API after the PATCH request. This typically includes the updated production record 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 basic authentication.
  • Needs network access to https://{Subdomain}.leanios.com/api/v1/productions/{id} endpoint.
  • The node expects the user to provide valid JSON data for the update in the jsonBody property.

Troubleshooting

  • Invalid Credentials: If authentication fails, verify that the API credentials are correct and have sufficient permissions.
  • Missing or Invalid ID: The id property must be provided and correspond to an existing production record; otherwise, the API will return an error.
  • Malformed JSON Body: Ensure the jsonBody contains valid JSON matching the expected schema for production updates.
  • Network Issues: Connectivity problems to the Leanios API endpoint can cause timeouts or failures.
  • API Errors: The node throws errors with messages returned from the API; check these messages for clues about invalid fields or business logic constraints.

Links and References

Discussion