Halo PSA icon

Halo PSA

Consume Halo PSA API

Actions795

Sla Head → Post Undefined

AI-generated

Overview

This node integrates with the Halo PSA API to perform various operations on different resources. Specifically, for the resource Sla Head and operation Post Undefined, it sends a POST request with a complex JSON body payload to create or update SLA (Service Level Agreement) head data in the Halo PSA system.

Typical use cases include automating SLA configuration management, updating workday schedules, priorities, access controls, and related nested entities within an SLA head structure. This is useful for IT service management workflows where SLAs need to be programmatically maintained or synchronized from external systems.

Example scenarios:

  • Creating or updating SLA definitions including workdays, holidays, breaks, priorities, and access control settings.
  • Automating SLA setup as part of onboarding or configuration deployment pipelines.
  • Integrating SLA data updates triggered by other workflow events.

Properties

Name Meaning
Body A JSON object representing the SLA head details to be sent in the POST request body. It includes nested structures such as workdays (holidays, timeslots, breaks), priorities, and access control configurations. The JSON can be highly detailed, covering schedules, roles, notifications, custom fields, and many other SLA-related entities.

The property expects a valid JSON input describing the full SLA head configuration. The user can provide this JSON directly or via expressions that parse JSON strings.

Output

The node outputs the JSON response returned by the Halo PSA API after performing the POST request. The output is structured as:

{
  "json": { /* API response object */ },
  "pairedItem": { "item": <index> }
}
  • json: Contains the parsed JSON response from the API, which typically includes confirmation of the created/updated SLA head, any generated IDs, status messages, or error information.
  • pairedItem: Links the output item to the corresponding input item index.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for authenticating with the Halo PSA API. This credential must provide:

    • Base URL of the Halo PSA instance.
    • Tenant identifier.
    • Client ID.
    • Client Secret.
  • The node uses these credentials to set HTTP headers for authentication on each request.

  • No additional external dependencies are required beyond the configured API credentials.

Troubleshooting

  • Common issues:

    • Invalid or missing credentials will cause authentication failures.
    • Malformed JSON in the Body property will result in parsing errors or API rejections.
    • Incorrect or incomplete SLA JSON structure may cause the API to return validation errors.
    • Network connectivity issues to the Halo PSA endpoint.
  • Error messages:

    • "No credentials returned!" — Ensure the API key credential is properly configured and selected.
    • "Resource Sla Head not found" or "Operation Post Undefined not found for resource Sla Head" — Check that the resource and operation names are correctly specified.
    • API error responses with validation messages — Review the JSON body for required fields and correct formatting.
    • Request timeouts or connection errors — Verify network access and base URL correctness.
  • To resolve errors, verify credentials, validate JSON input, and consult Halo PSA API documentation for required fields and formats.

Links and References

  • Halo PSA API Documentation (generic link; replace with actual if available)
  • n8n Documentation on HTTP Request Node for understanding API calls
  • JSON Schema validators or editors to help construct valid SLA JSON bodies

Discussion