{{sidenavigation.sidenavigationExpandLabel}}
{{getMsg('Help_YouAreHere')}}: /  {{page.title}} {{page.title}}
{{$root.getMsg("downLoadHelpAsPdf")}} {{helpModel.downloadHelpPdfDataStatus}}

Categories

/api/helpdesk/categories

Manages hierarchical HelpDesk ticket categories. Access requires either the general configuration permission or the HelpDesk template-definition permission.

POST creates a request-local category, applies the supplied writable properties, validates it, and persists it with a server-generated identifier. PUT and PATCH use the same validation. DELETE and active=false perform a soft deactivation; inactive categories remain addressable.

Deactivation is intentionally non-cascading and fails while a mail account or active descendant references the category. Parent changes must not create cycles. If the category field is visible to end users, at least one active category must remain effectively visible.

GET /api/helpdesk/categories

Lists configurable categories in hierarchical path order.

Parameters

Name Location Type Required Description
includeInactive query boolean no whether to include inactive categories; defaults to false (active only)
query query string no optional case-insensitive substring filter applied to the full category path
fields query string no Comma-separated readable properties to include in the JSON response.

Response

Status Content Type Schema Description
200 application/json array<CategoryRead> matching categories

Example Request

# Request
GET /api/helpdesk/categories HTTP/1.1
Accept: application/json
Authorization: Bearer <access-token>

# Response
HTTP/1.1 200 OK
Content-Type: application/json

[
    {
        "path": "string",
        "id": 0,
        "name": "string",
        "parentId": 0,
        "resourceId": 0
    }
]

POST /api/helpdesk/categories

Creates a category with a server-generated identifier. The request body must provide "name"; omitted "parentId" and "resourceId" default to zero, and omitted "active" defaults to true.

Request Body

Content Type Schema Required Description
application/json CategoryCreate yes —

Response

Status Content Type Schema Description
201 application/json CategoryRead staged category

Example Request

# Request
POST /api/helpdesk/categories HTTP/1.1
Accept: application/json
Authorization: Bearer <access-token>
Content-Type: application/json

{
    "path": "string",
    "id": 0,
    "name": "string",
    "parentId": 0,
    "resourceId": 0
}

# Response
HTTP/1.1 201 Created
Content-Type: application/json

{
    "path": "string",
    "id": 0,
    "name": "string",
    "parentId": 0,
    "resourceId": 0
}

Common Error Responses

The status codes 400, 403, 404, 405, 406, 409, 413, 415, and 500 use the same ApiError JSON error format:

{
    "status": 404,
    "code": "route_not_found",
    "message": "The requested API route does not exist.",
    "details": []
}

Schemas

Request and response schemas used on this page.

CategoryRead

Property Type Required Description
path string no

Server-computed full category path including parent names. Read-only.

id integer (int32) no

Stable server-generated category identifier. The reserved root identifier zero is not exposed.

name string no

Required user-visible name without its parent path, trimmed and limited to 49 characters.

parentId integer (int32) no

Identifier of an active parent category, or zero for a top-level category. The relation must not create a hierarchy cycle.

resourceId integer (int32) no

Identifier of an active default resource, or zero for no automatic resource assignment.

hiddenToEndUsers boolean no

Whether this category is hidden from end users. A category is also effectively hidden when any ancestor is hidden.

sender string no

Optional sender address used for mail sent in the context of this category.

active boolean no

Whether this category is active. Setting this to false soft-deactivates the category and is subject to the same conflicts as DELETE. Setting it to true reactivates it.

ApiError

Property Type Required Description
status integer (int32) yes —
code string yes —
message string yes —
details array<object> no —

CategoryCreate

Property Type Required Description
path string no

Accepts the computed path emitted by a GET response so the representation can be submitted unchanged. The path is recomputed from the writable name and parentId values.

id integer (int32) no

Accepts the identifier emitted by a GET response for a complete PUT/PATCH round-trip. The URL-selected identifier remains authoritative and this value is ignored.

name string no

Required user-visible name without its parent path, trimmed and limited to 49 characters.

parentId integer (int32) no

Identifier of an active parent category, or zero for a top-level category. The relation must not create a hierarchy cycle.

resourceId integer (int32) no

Identifier of an active default resource, or zero for no automatic resource assignment.

hiddenToEndUsers boolean no

Whether this category is hidden from end users. A category is also effectively hidden when any ancestor is hidden.

sender string no

Optional sender address used for mail sent in the context of this category.

active boolean no

Whether this category is active. Setting this to false soft-deactivates the category and is subject to the same conflicts as DELETE. Setting it to true reactivates it.

i-net HelpDesk
Diese Anwendung verwendet Cookies um das Einloggen zu ermöglichen. Durch die weitere Nutzung dieser Anwendung stimmen Sie der Verwendung von Cookies zu.


Hilfe