Halo PSA icon

Halo PSA

Consume Halo PSA API

Actions795

Audit → Delete Undefined

AI-generated

Overview

This node integrates with the Halo PSA API to perform various operations on different resources. Specifically, for the Audit resource with the Delete Undefined operation, it allows users to delete an audit entry by its unique identifier. This is useful in scenarios where you need to programmatically remove audit records that are no longer relevant or were created erroneously.

Practical examples include:

  • Cleaning up audit logs automatically after a certain period.
  • Removing test or placeholder audit entries during data maintenance.
  • Integrating audit deletion as part of a larger workflow that manages system logs or compliance data.

Properties

Name Meaning
Id The unique numeric identifier of the audit record to be deleted. This property is required to specify which audit entry should be removed.

Output

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

If the operation encounters an error and "Continue On Fail" is enabled, the output JSON 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 of the Halo PSA instance.
    • Tenant identifier.
    • Client ID.
    • Client Secret.
  • These credentials must be configured in n8n prior to using the node.

  • The node uses HTTP requests to communicate with the Halo PSA API endpoints.

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 audit Id may result in an API error response.
    • Network connectivity issues can prevent successful API calls.
  • Error Messages:

    • "No credentials returned!": Ensure that the API credentials are correctly set up in n8n.
    • "Resource Audit not found" or "Operation Delete Undefined not found for resource Audit": Indicates misconfiguration of resource or operation parameters.
    • API errors returned from Halo PSA (e.g., 404 Not Found if the audit Id does not exist) will be included in the output JSON under the error field if "Continue On Fail" is enabled.
  • Resolution Tips:

    • Double-check the audit Id value before running the node.
    • Verify API credentials and permissions.
    • Enable "Continue On Fail" to handle errors gracefully within workflows.

Links and References

Discussion