Halo PSA icon

Halo PSA

Consume Halo PSA API

Actions795

Policy → Delete Undefined

AI-generated

Overview

This node integrates with the Halo PSA API to perform various operations on different resources. Specifically, for the Policy resource with the Delete Undefined operation, it deletes a policy identified by a given ID. This is useful in scenarios where you need to programmatically remove policies from your Halo PSA system, such as cleaning up outdated or incorrect policies.

Practical examples include:

  • Automating the removal of deprecated policies during system maintenance.
  • Integrating policy deletion into broader workflows that manage service agreements or compliance rules.

Properties

Name Meaning
Id The unique identifier of the policy to delete. This is a required string input.

Output

The node outputs JSON data representing the response from the Halo PSA API after attempting to delete the specified policy. The structure typically includes confirmation of deletion or error details if the operation failed.

If an error occurs and "Continue On Fail" is enabled, the output will contain an error field with the error message.

No binary data output is produced by this operation.

Dependencies

  • Requires valid credentials for the Halo PSA API, including base URL, tenant identifier, client ID, and client secret.
  • The node uses these credentials to authenticate API requests.
  • No additional external dependencies are needed beyond the configured API credentials.

Troubleshooting

  • Common Issues:

    • Missing or invalid credentials will cause the node to throw an error indicating no credentials were returned.
    • Providing an invalid or non-existent policy ID will result in an API error, which will be reflected in the node's output.
    • Network connectivity issues can prevent successful API calls.
  • Error Messages:

    • "No credentials returned!": Ensure that the API credentials are correctly configured in n8n.
    • "Resource Policy not found" or "Operation Delete Undefined not found for resource Policy": Indicates misconfiguration of resource or operation parameters.
    • API errors returned from Halo PSA (e.g., 404 Not Found if the policy ID does not exist) will appear in the output JSON under an error field if "Continue On Fail" is enabled.

To resolve errors, verify credentials, confirm the policy ID exists, and check network connectivity.

Links and References

Discussion