Server API: help requests
Copy as MarkdownThese routes are on the server API, port 21114 (21121 in Docker). They take an API key in X-API-Key or a sign-in token; see The HTTP API.
Help requests on the server API. Its errors come as {"error": "..."} with the content type text/plain.
List help requests the computers raised.
Newest first. A caller of an organization sees only its organization's requests; one of no organization sees all.
On the server API, port 21114. Needs chat.support.
| Parameter | In | Type | What it is |
|---|---|---|---|
status |
query | string, one of pending, acknowledged, resolved, cancelled |
|
device_id |
query | string | |
limit |
query | integer | default 100, at least 1, at most 500 |
200: Done (application/json)
| Field | Type | Required |
|---|---|---|
requests |
array of HelpRequest | yes |
| Error | When |
|---|---|
| 401 | No credential, or one that is not valid |
| 403 | The credential's role lacks the permission |
Raise a help request for a device.
Makes a pending request in the device's organization and tells the console. The console uses it for older clients that send their help request to it; computers raise theirs over CDAP.
On the server API, port 21114. Needs chat.support.
Request body, application/json:
| Field | Type | Required | What it is |
|---|---|---|---|
device_id |
string | yes | The device ID; spaces around it are trimmed |
hostname |
string | ||
message |
string | Cut to 2048 bytes |
200: Made (application/json)
| Error | When |
|---|---|
| 400 | The body is no JSON, or there is no device_id |
| 401 | No credential, or one that is not valid |
| 403 | The credential's role lacks the permission |
Show a help request.
On the server API, port 21114. Needs chat.support.
| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
id |
path | integer | yes | The help request's number (see help-requests list) |
200: Done (application/json)
| Error | When |
|---|---|
| 400 | The id is no number above 0 |
| 401 | No credential, or one that is not valid |
| 403 | The role lacks the permission, or the request belongs to another organization |
| 404 | There is no such help request |
Mark a help request as picked up.
Sets the status to acknowledged, records the caller as handled_by and tells the console. A request that has the status already keeps it and its handled_by. A resolved or cancelled request stays closed and answers 409.
On the server API, port 21114. Needs chat.support.
| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
id |
path | integer | yes | The help request's number (see help-requests list) |
200: Done (application/json)
| Error | When |
|---|---|
| 400 | The id is no number above 0 |
| 401 | No credential, or one that is not valid |
| 403 | The role lacks the permission, or the request belongs to another organization |
| 404 | There is no such help request |
| 409 | The request is resolved or cancelled; error is closed and status its status |
Close a help request as solved.
Sets the status to resolved, records the caller as handled_by and tells the console. A request that has the status already keeps it and its handled_by.
On the server API, port 21114. Needs chat.support.
| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
id |
path | integer | yes | The help request's number (see help-requests list) |
200: Done (application/json)
| Error | When |
|---|---|
| 400 | The id is no number above 0 |
| 401 | No credential, or one that is not valid |
| 403 | The role lacks the permission, or the request belongs to another organization |
| 404 | There is no such help request |