Logotipo Hedhog

Get Hedhog updates in your inbox

New releases, fresh recipes, and breaking changes — no spam.

sac Submodule

categories

Ticket classification tree, with default priority, default assignee and its own SLA policy per branch.

Source path: libraries/sac/src/category

Module file: category.module.ts

Introduction

Categories form a self-referencing tree and carry the routing defaults of a ticket: `default_priority`, `default_assignee_user_id` and `sla_policy_id`. A ticket created without an explicit priority inherits it from the category, and only then from the channel — which is what lets "Billing" answer to a stricter clock than "General enquiry" with no code involved.

The names are translatable through `sac_category_locale`, so the same tree serves the public form in several languages.

HTTP Endpoints

5 endpoints

Paginated category list in the caller locale.

Query
page, pageSize, search

Active categories, to populate the select on the website form.

Create a category, optionally under a parent.

Update a category.

Params
id (int)

Delete a category.

Params
id (int)