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

Categories

/api/helpdesk/categories/{categoryId}

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.

DELETE /api/helpdesk/categories/{categoryId}

Soft-deactivates this category. A mail-account reference produces the 409 code "category_mail_account_reference"; an active direct or indirect descendant produces "category_children_active". Related data is never changed implicitly.

Parameters

Name Location Type Required Description
categoryId path string yes category identifier

Response

Status Content Type Schema Description
204 — — No content.

Example Request

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

# Response
HTTP/1.1 204 No Content

GET /api/helpdesk/categories/{categoryId}

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.

Parameters

Name Location Type Required Description
categoryId path string yes category identifier
fields query string no Comma-separated readable properties to include in the JSON response.

Response

Status Content Type Schema Description
200 application/json CategoryRead Successful response.

Example Request

# Request
GET /api/helpdesk/categories/<categoryId> 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
}

PATCH /api/helpdesk/categories/{categoryId}

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.

Parameters

Name Location Type Required Description
categoryId path string yes category identifier

Request Body

Content Type Schema Required Description
application/json CategoryUpdate yes —

Response

Status Content Type Schema Description
200 application/json CategoryRead Successful response.

Example Request

# Request
PATCH /api/helpdesk/categories/<categoryId> 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 200 OK
Content-Type: application/json

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

PUT /api/helpdesk/categories/{categoryId}

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.

Parameters

Name Location Type Required Description
categoryId path string yes category identifier

Request Body

Content Type Schema Required Description
application/json CategoryUpdate yes —

Response

Status Content Type Schema Description
200 application/json CategoryRead Successful response.

Example Request

# Request
PUT /api/helpdesk/categories/<categoryId> 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 200 OK
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 —

CategoryUpdate

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
This application uses cookies to allow login. By continuing to use this application, you agree to the use of cookies.


Help