Halo PSA icon

Halo PSA

Consume Halo PSA API

Actions795

Power Shell Script Criteria → Post Undefined

AI-generated

Overview

This node integrates with the Halo PSA API, allowing users to perform various operations on different resources within the Halo PSA system. Specifically, for the "Power Shell Script Criteria" resource and the "Post Undefined" operation, it sends a POST request with a JSON body to the corresponding API endpoint.

Common scenarios where this node is beneficial include automating interactions with the Halo PSA platform, such as creating or updating criteria for PowerShell scripts used in IT service management workflows. For example, a user might automate the creation of script criteria based on dynamic inputs from other systems or trigger updates when certain conditions are met.

Properties

Name Meaning
Body The JSON object sent as the request body in the POST operation. This contains the data defining the Power Shell Script Criteria to be created or updated.

Output

The node outputs an array of JSON objects, each corresponding to one input item processed. Each output item has a json field containing the response from the Halo PSA API for that particular request.

  • The structure of the json output depends on the API response but generally includes details about the created or updated Power Shell Script Criteria.
  • If an error occurs during the request and the node is set to continue on failure, the output will contain a json object with an error property describing the issue.
  • This node does not output binary data.

Dependencies

  • Requires valid credentials for the Halo PSA API, including base URL, tenant identifier, client ID, and client secret.
  • The node expects these credentials to be configured in n8n prior to execution.
  • Relies on the Halo PSA REST API being accessible and operational.

Troubleshooting

  • No credentials returned!
    This error indicates missing or misconfigured API credentials. Ensure that the required API authentication details are correctly set up in n8n.

  • Resource or Operation not found
    Occurs if the specified resource or operation does not exist in the node's configuration. Verify that the resource is "Power Shell Script Criteria" and the operation is "Post Undefined" as expected.

  • API request errors
    Errors returned by the Halo PSA API (e.g., validation errors, authorization failures) will appear in the output under the error property if "Continue On Fail" is enabled. Check the error message for details and verify the request body and credentials.

  • JSON parsing issues
    Since the "Body" property expects valid JSON, malformed JSON input will cause parsing errors. Ensure the JSON syntax is correct.

Links and References

Discussion