Halo PSA icon

Halo PSA

Consume Halo PSA API

Actions795

Costcentres → Delete Undefined

AI-generated

Overview

This node integrates with the Halo PSA API to perform operations on various resources, including Costcentres. Specifically, for the Costcentres resource and the Delete Undefined operation, it deletes a cost centre identified by its ID.

Typical use cases include automating the cleanup or removal of obsolete or incorrect cost centres in your Halo PSA system. For example, if you have cost centres that are no longer valid or were created erroneously, this node can programmatically delete them based on their unique identifier.

Properties

Name Meaning
Id The numeric identifier of the cost centre to delete. This is required to specify which cost centre should be removed.

Output

The node outputs an array of JSON objects corresponding to each input item processed. Each output item contains:

  • json: The response from the Halo PSA API after attempting to delete the specified cost centre.
    • On success, this typically includes confirmation details from the API about the deletion.
    • On failure, if "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 connection to the Halo PSA API.
  • Needs credentials providing:
    • Base URL of the Halo PSA instance.
    • Tenant identifier.
    • Client ID and Client Secret for authentication.
  • These credentials must be configured in n8n prior to using the node.

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 cost centre ID will result in an API error.
    • Network connectivity problems may cause request failures.
  • Error messages:

    • "No credentials returned!": Ensure that the API credentials are correctly set up in n8n.
    • "Resource Costcentres not found" or "Operation Delete Undefined not found for resource Costcentres": Indicates misconfiguration of resource or operation parameters.
    • API errors returned from Halo PSA (e.g., 404 Not Found if the cost centre ID does not exist) will be included in the output if "Continue On Fail" is enabled; otherwise, they will stop execution.
  • Resolution tips:

    • Verify the correctness of the cost centre ID.
    • Confirm that the API credentials have sufficient permissions to delete cost centres.
    • Enable "Continue On Fail" during testing to capture error details without stopping the workflow.

Links and References

  • Halo PSA API Documentation (general reference for API endpoints and authentication)
  • n8n documentation on HTTP Request Node for understanding how API calls are made
  • n8n community forums for troubleshooting custom node integrations

Discussion