Categories
/api/helpdesk/categories/{categoryId}/active
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/{categoryId}/active
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.
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
categoryId |
path | string |
yes | category identifier |
Response
| Status | Content Type | Schema | Description |
|---|---|---|---|
200 |
application/json |
boolean |
Successful response. |
Example Request
# Request GET /api/helpdesk/categories/<categoryId>/active HTTP/1.1 Accept: application/json Authorization: Bearer <access-token> # Response HTTP/1.1 200 OK Content-Type: application/json true
PUT /api/helpdesk/categories/{categoryId}/active
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.
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
categoryId |
path | string |
yes | category identifier |
Request Body
| Content Type | Schema | Required | Description |
|---|---|---|---|
application/json |
boolean |
yes |
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. |
Response
| Status | Content Type | Schema | Description |
|---|---|---|---|
200 |
application/json |
boolean |
Successful response. |
Example Request
# Request PUT /api/helpdesk/categories/<categoryId>/active HTTP/1.1 Accept: application/json Authorization: Bearer <access-token> Content-Type: application/json true # Response HTTP/1.1 200 OK Content-Type: application/json true
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.
ApiError
| Property | Type | Required | Description |
|---|---|---|---|
status |
integer (int32) |
yes | — |
code |
string |
yes | — |
message |
string |
yes | — |
details |
array<object> |
no | — |