Statuses
/api/helpdesk/statuses
Manages HelpDesk ticket statuses. Reading and writing requires the general configuration permission.
POST creates a request-local status, applies the supplied writable properties, validates it, and persists it. PUT and PATCH use the same validation before persisting changes. DELETE and active=false perform a soft deactivation; inactive statuses remain addressable and can be included in collection results.
Internal statuses cannot be renamed or deactivated. A status referenced by an active action cannot be deactivated. Deactivation also clears the configured read-follow-up status when it points to this status.
GET /api/helpdesk/statuses
Lists statuses visible to settings administrators.
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
includeInactive |
query | boolean |
no | whether to include inactive statuses; defaults to false (active only) |
query |
query | string |
no | optional case-insensitive substring filter applied to the status name |
fields |
query | string |
no | Comma-separated readable properties to include in the JSON response. |
Response
| Status | Content Type | Schema | Description |
|---|---|---|---|
200 |
application/json |
array<StatusRead> |
matching statuses |
Example Request
# Request
GET /api/helpdesk/statuses HTTP/1.1
Accept: application/json
Authorization: Bearer <access-token>
# Response
HTTP/1.1 200 OK
Content-Type: application/json
[
{
"id": 0,
"name": "string",
"icon": "string",
"internal": true,
"active": true
}
]
POST /api/helpdesk/statuses
Creates a custom status. The request body must provide "id" and "name"; omitted "active" defaults to true.
Request Body
| Content Type | Schema | Required | Description |
|---|---|---|---|
application/json |
StatusCreate |
yes | — |
Response
| Status | Content Type | Schema | Description |
|---|---|---|---|
201 |
application/json |
StatusRead |
staged status |
Example Request
# Request
POST /api/helpdesk/statuses HTTP/1.1
Accept: application/json
Authorization: Bearer <access-token>
Content-Type: application/json
{
"id": 0,
"name": "string",
"icon": "string",
"active": true
}
# Response
HTTP/1.1 201 Created
Content-Type: application/json
{
"id": 0,
"name": "string",
"icon": "string",
"internal": true,
"active": 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.
StatusRead
| Property | Type | Required | Description |
|---|---|---|---|
id |
integer (int32) |
no |
Stable identifier in the inclusive range 0 to 1000000. Required on create and immutable afterwards. |
name |
string |
no |
Required user-visible name, trimmed before storage, at most 50 characters and unique ignoring case. |
icon |
string |
no |
Optional relative name of an existing status icon. This property only stores the name; it does not upload or delete an icon file. |
internal |
boolean |
no |
Whether this status is internal, system-managed, and not user-selectable. Read-only. |
active |
boolean |
no |
Whether this status is active. Setting this to false soft-deactivates the status 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 | — |
StatusCreate
| Property | Type | Required | Description |
|---|---|---|---|
id |
integer (int32) |
no |
Sets the stable identifier while creating a status. Existing status identifiers are immutable. |
name |
string |
no |
Required user-visible name, trimmed before storage, at most 50 characters and unique ignoring case. |
icon |
string |
no |
Optional relative name of an existing status icon. This property only stores the name; it does not upload or delete an icon file. |
active |
boolean |
no |
Whether this status is active. Setting this to false soft-deactivates the status and is subject to the same conflicts as DELETE. Setting it to true reactivates it. |