Leanios icon

Leanios

Actions24

Overview

This node integrates with the Leanios API to perform operations on various resources, including Workorders. Specifically for the PATCH operation on a Workorder, it updates an existing workorder record by sending a JSON body with the desired changes to the Leanios API.

Common scenarios where this node is useful include:

  • Updating the status or details of a workorder in Leanios after processing or review.
  • Modifying attributes such as assigned personnel, deadlines, or notes on a workorder.
  • Automating updates to workorders based on external triggers or workflows.

For example, you might use this node to patch a workorder’s priority or completion date after receiving updated information from another system.

Properties

Name Meaning
Subdomain The Leanios account subdomain to target (e.g., "dummy"). This defines the API endpoint.
Request Mode The mode of request payload; currently only supports "jsonBody" which sends JSON data.
jsonBody The JSON object containing fields and values to update in the workorder.
id The numeric identifier of the workorder to update.

Output

The node outputs a JSON array containing the response from the Leanios API after the PATCH request. This typically includes the updated workorder object reflecting the changes made.

If the API returns binary data (not indicated here), it would be included accordingly, but this node primarily deals with JSON responses.

Dependencies

  • Requires an active Leanios API credential with username and password for basic authentication.
  • Needs the Subdomain property to construct the correct API URL.
  • The node uses the Leanios REST API v1 endpoints.

Troubleshooting

  • Authentication errors: Ensure that the provided API credentials are correct and have sufficient permissions.
  • Invalid ID: If the id does not correspond to an existing workorder, the API will likely return a 404 error.
  • Malformed JSON Body: The jsonBody must be valid JSON and conform to the expected schema of the Leanios API for workorders.
  • Network issues: Verify network connectivity to the Leanios API endpoint (https://{Subdomain}.leanios.com/api/v1/workorders/{id}).
  • Error messages: The node throws errors with messages returned from the API. Review these messages to adjust input parameters accordingly.

Links and References

Discussion