Actions24
Overview
This node integrates with the Leanios API to perform operations on various resources, including Workorders. Specifically for the Workorder resource with the POST operation, it allows users to create new workorders by sending a JSON body payload to the Leanios API endpoint.
Common scenarios where this node is beneficial include automating the creation of workorders in Leanios from other systems or workflows, such as generating workorders based on incoming orders, inventory changes, or production schedules.
For example, a manufacturing company could use this node to automatically create a workorder in Leanios whenever a new production request is received, streamlining their production planning process.
Properties
| Name | Meaning |
|---|---|
| Subdomain | The Leanios account subdomain to target (e.g., "dummy"). This defines the API base URL. |
| Request Mode | The mode of the request; currently supports only "jsonBody" which means sending JSON data in the request body. |
| jsonBody | The JSON object representing the workorder details to be created. This is the payload sent in the POST request. |
Output
The node outputs a JSON array containing the response from the Leanios API after creating the workorder. The structure of the JSON output corresponds directly to the API's response, typically including details of the newly created workorder such as its ID, status, and any other relevant fields returned by the API.
No binary data output is produced by this node.
Dependencies
- Requires an active Leanios API credential consisting of a username and password for basic authentication.
- The node constructs the API URL dynamically using the provided Subdomain property.
- Network access to
https://{Subdomain}.leanios.com/api/v1/workordersis required.
Troubleshooting
- Authentication errors: If the API credentials are incorrect or missing, the node will fail with an authentication error. Ensure valid credentials are configured.
- Invalid JSON body: If the
jsonBodyproperty contains malformed JSON or invalid data according to the Leanios API schema, the API may return an error. Validate the JSON structure before execution. - Incorrect Subdomain: Using an incorrect or misspelled subdomain will cause connection failures or 404 errors. Verify the subdomain matches your Leanios account.
- API errors: Any error messages returned by the Leanios API will be surfaced by the node. Review the message for clues and consult Leanios API documentation for resolution.
Links and References
- Leanios API Documentation (general reference for API endpoints and payloads)
- n8n Documentation on Creating Custom Nodes