API – ServiceDesk¶
Paths are under https://api.innovanet.com. Header Authorization: Bearer inv_mcp_…. The innovanet() function is in the API chapter.
Incident status is text: created, in_progress, on_hold, resolved, rejected, closed. A regular user sees their own incidents. An operator sees all of them.
GET /api/servicedesk¶
| Parameter | Type | Required | Description |
|---|---|---|---|
page |
integer | no | default 1 |
limit |
integer | no | default 20, at most 100 |
year |
integer | no | by creation date |
status |
string | no | one of the statuses above |
type_id |
integer | no | from GET /api/servicedesk/categories |
system |
string | no | |
solver_id |
integer | no | |
author_id |
integer | no | |
search |
string | no | |
sort_by |
string | no | default date_created |
sort_order |
string | no | ASC or DESC |
PHP
$res = innovanet('GET', '/api/servicedesk?status=created&page=1&limit=20');
Response 200
{
"success": true,
"data": {
"items": [
{
"id": 6,
"title": "Nefunguje tlačiareň",
"system": "2. poschodie",
"type_id": 1,
"status": "created",
"priority": "medium",
"author_id": 15,
"author_name": "Jana Nováková",
"solver_id": null,
"solver_name": null,
"date_created": "2026-11-05 10:00:00"
}
],
"total": 1,
"page": 1,
"limit": 20,
"total_pages": 1
}
}
Statistics: GET /api/servicedesk/stats?year=2026. Types: GET /api/servicedesk/categories. Solvers: GET /api/servicedesk/operators. Detail: GET /api/servicedesk/6.
POST /api/servicedesk¶
| Field | Type | Required | Description |
|---|---|---|---|
title |
string | yes | at most 500 |
type_id |
integer | yes | type id from the lookup |
system |
string | no | at most 255 |
description |
string | no | at most 20000 |
Attachments go as multipart (files[] or file), not in JSON.
Request
{
"title": "Nefunguje tlačiareň",
"type_id": 1,
"system": "2. poschodie",
"description": "Pri tlači hlási chybu papiera."
}
cURL
curl -sS -X POST "https://api.innovanet.com/api/servicedesk" \
-H "Authorization: Bearer inv_mcp_…" \
-H "Content-Type: application/json" \
-d "{\"title\":\"Nefunguje tlačiareň\",\"type_id\":1,\"system\":\"2. poschodie\"}"
PHP
$res = innovanet('POST', '/api/servicedesk', [
'title' => 'Nefunguje tlačiareň',
'type_id' => 1,
'system' => '2. poschodie',
'description' => 'Pri tlači hlási chybu papiera.',
]);
Response 201
{
"success": true,
"data": {
"id": 6,
"title": "Nefunguje tlačiareň",
"status": "created",
"priority": "medium",
"type_id": 1,
"author_id": 15
}
}
An unknown type_id returns 422.
Status and comment¶
An operator or the assigned solver changes the status.
POST /api/servicedesk/6/change-status
| Field | Type | Required | Description |
|---|---|---|---|
status |
string | yes | in_progress, on_hold, resolved, rejected, closed |
solver_comment |
string | when resolved, rejected, closed |
solver note |
{
"status": "resolved",
"solver_comment": "Vymenený valec."
}
innovanet('POST', '/api/servicedesk/6/change-status', [
'status' => 'resolved',
'solver_comment' => 'Vymenený valec.',
]);
Response 200 – data is the incident with the new status. Without a note when resolving, rejecting or closing, the response is 422.
Assigning a solver (operator only): POST /api/servicedesk/6/assign-solver with solver_id. Comment: POST /api/servicedesk/6/comments with the required field body.
Other paths¶
Each path below belongs to this module. Field names are the ones the API reads. A downloaded file is not JSON.
GET /api/servicedesk/list-info¶
Parameters
| Field | Type | Required |
|---|---|---|
year |
string | no |
The API reads these fields. A field is required when the table says yes.
Response 200 – Envelope { "success": true, "data": ... }.
GET /api/servicedesk/years¶
No body.
Response 200 – Envelope { "success": true, "data": ... }.
GET /api/servicedesk/export¶
Parameters
| Field | Type | Required |
|---|---|---|
year |
string | no |
status |
string | no |
type_id |
string | no |
system |
string | no |
solver_id |
string | no |
author_id |
string | no |
search |
string | no |
sort_by |
string | no |
sort_order |
string | no |
The API reads these fields. A field is required when the table says yes.
Response – The response is a file, not JSON.
GET /api/servicedesk/systems¶
No body.
Response 200 – Envelope { "success": true, "data": ... }.
POST /api/servicedesk/{id}/complaint¶
No body.
Response 200 – Envelope { "success": true, "data": ... }.
GET /api/servicedesk/{id}/attachments¶
No body.
Response 200 – Envelope { "success": true, "data": ... }.
POST /api/servicedesk/{id}/attachments¶
Body
| Field | Type | Required |
|---|---|---|
file |
file | yes |
The file is sent as multipart, not in JSON.
Response 201 – Envelope { "success": true, "data": ... }.
DELETE /api/servicedesk/{id}/attachments/{attachmentId}¶
No body.
Response 200 – Envelope { "success": true, "data": ... }.
GET /api/servicedesk/{id}/attachments/{attachmentId}/download¶
No body.
Response – The response is a file, not JSON.
Want to try this feature? Start your innovanet trial →