Halo PSA icon

Halo PSA

Consume Halo PSA API

Actions795

Contract Rule → Delete Undefined

AI-generated

Overview

This node integrates with the Halo PSA API to perform various operations on different resources. Specifically, for the Contract Rule resource and the Delete Undefined operation, it deletes a contract rule identified by its ID. This is useful in scenarios where you need to programmatically remove obsolete or incorrect contract rules from your PSA system.

Practical examples include:

  • Automating cleanup of contract rules that are no longer valid.
  • Integrating contract rule deletion into larger workflows that manage contracts lifecycle.
  • Removing test or placeholder contract rules after validation.

Properties

Name Meaning
Id The unique identifier (number) of the contract rule to delete. This property is required.

Output

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

If an error occurs 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 an API key credential for authenticating with the Halo PSA API.
  • The node expects configuration of the following credentials parameters:
    • Base URL of the Halo PSA API instance.
    • Tenant identifier.
    • Client ID.
    • Client Secret.

These must be set up in n8n's credentials manager before using the node.

Troubleshooting

  • Common issues:

    • Missing or invalid credentials will cause authentication failures.
    • Providing an invalid or non-existent contract rule ID will result in an error from the API.
    • Network connectivity problems can prevent the node from reaching the Halo PSA API.
  • Error messages:

    • "No credentials returned!": Indicates that the node could not retrieve the necessary API credentials. Ensure credentials are properly configured.
    • "Resource Contract Rule not found" or "Operation Delete Undefined not found for resource Contract Rule": These indicate misconfiguration of resource or operation parameters.
    • API errors returned in the JSON response under the error field provide details on why deletion failed (e.g., permission denied, invalid ID).

To resolve errors, verify credentials, confirm the contract rule ID exists, and check network access.

Links and References

Discussion