Konsole: help-requests
Als Markdown kopierenDiese Routen liegen auf der Konsole, Port 3375. Sie nehmen ein API-Token als Authorization: Bearer ndt_...; siehe API-Tokens. Die Beschreibungen stehen auf Englisch, wie in der OpenAPI-Beschreibung.
Help requests: a person at a computer asks for help from the NeoDesk app, and staff take and close the request. Needs chat.support.
List help requests.
Gives the 200 newest requests of the server API, newest first. An account whose device scope is limited gets only the requests of its devices. When the server API refuses the list, the answer is an empty list.
Needs chat.support. neodesk help-requests list calls it.
| Parameter | In | Type | What it is |
|---|---|---|---|
status |
query | string, one of pending, acknowledged, resolved, cancelled |
Only requests with this status, as the server API names it: acknowledged is shown as accepted |
device_id |
query | string | Only the requests of this device |
200: Done (application/json)
| Field | Type | Required | What it is |
|---|---|---|---|
success |
true |
yes | |
requests |
array of object | yes | |
requests[].id |
string | yes | The request's number as text |
requests[].device_id |
string | yes | |
requests[].hostname |
string | yes | |
requests[].message |
string | yes | |
requests[].status |
string, one of pending, accepted, resolved, cancelled |
yes | |
requests[].accepted_by |
string | yes | The account that took it; empty unless the status is accepted |
requests[].resolved_by |
string | yes | The account that closed it; empty unless the status is resolved |
requests[].created_at |
string (date-time) | yes | |
requests[].updated_at |
string or null (date-time) | yes |
| Error | When |
|---|---|
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |
Take a help request.
Sets the request's status on the server API to acknowledged and writes an audit entry. A request about a device outside the account's device scope is not found. A request that has the status already stays as it is; one that is resolved or cancelled stays closed and answers 409 with the error closed.
Needs chat.support. neodesk help-requests accept calls it.
| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
id |
path | integer | yes | The help request's number (see help-requests list) |
200: Done (application/json)
| Field | Type | Required |
|---|---|---|
success |
true |
yes |
request |
HelpRequestStatusChange | yes |
| Error | When |
|---|---|
| 400 | The request is not valid |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |
| 404 | There is no such item, or the account does not see it |
| 409 | The request is resolved or cancelled |
| 502 | The server API failed |
Close a help request as solved.
Sets the request's status on the server API to resolved and writes an audit entry. A request about a device outside the account's device scope is not found. A request that has the status already stays as it is.
Needs chat.support. neodesk help-requests resolve calls it.
| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
id |
path | integer | yes | The help request's number (see help-requests list) |
200: Done (application/json)
| Field | Type | Required |
|---|---|---|
success |
true |
yes |
request |
HelpRequestStatusChange | yes |
| Error | When |
|---|---|
| 400 | The request is not valid |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |
| 404 | There is no such item, or the account does not see it |
| 502 | The server API failed |