Konsole: support
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.
Quick support: a code or link that lets someone at a computer without NeoDesk get help once, the feedback they give afterwards, and its settings.
Show whether quick support offers to keep NeoDesk Companion on the computer afterwards.
Needs server.config. neodesk support companion-offer calls it.
200: Done (application/json)
| 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 |
Turn the offer to keep NeoDesk Companion after quick support on or off.
Writes an audit entry.
Needs server.config. neodesk support companion-offer-set calls it.
Request body, application/json:
| Field | Type | Required |
|---|---|---|
enabled |
boolean | yes |
200: Done (application/json)
| Error | When |
|---|---|
| 400 | No enabled (code invalid_body) |
| 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 |
Get a one-time password for a device joined through support.
Answers the password of the account's allowed quick support session on the device, once. With no password to hand over the answer is still 200, with an empty password and, when the account has a session on the device that is not over, the session's name and status.
Needs device.connect. neodesk support device-password calls it.
| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
id |
path | string | yes | The device ID |
200: Done (application/json)
| Field | Type | Required | What it is |
|---|---|---|---|
success |
true |
yes | |
password |
string | yes | Empty when there is none to hand over |
session |
object | Only with an empty password, when the account has a session on the device that is not over | |
session.name |
string | yes | The person's name, else the computer's |
session.status |
string, one of waiting, opened, asking, allowed, declined, ended, expired |
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 |
List what people answered after quick support, newest first, with the average stars.
Lists every answer, newest first, with their number, the average stars and the helpers that have answers. helper limits the answers, the number and the average to one helper's sessions; the helpers list stays whole.
Needs device.connect. neodesk support feedback calls it.
| Parameter | In | Type | What it is |
|---|---|---|---|
helper |
query | integer | Only the answers to this account's sessions, by its account id; at least 1 |
200: Done (application/json)
| Field | Type | Required | What it is |
|---|---|---|---|
success |
true |
yes | |
feedback |
array of object | yes | |
feedback[].session_id |
string | yes | |
feedback[].answered_at |
string (date-time) | yes | |
feedback[].started_at |
string (date-time) | ||
feedback[].ended_at |
string (date-time) | ||
feedback[].device_id |
string | ||
feedback[].hostname |
string | ||
feedback[].helper_id |
integer | yes | The account that helped |
feedback[].helper |
string | yes | Its name |
feedback[].name |
string | The person who was helped | |
feedback[].email |
string | ||
feedback[].stars |
integer or null | yes | The answer to the first rating question, 1 to 5; null for none |
feedback[].answers |
array of object | yes | |
feedback[].answers[].id |
string | yes | The question's id |
feedback[].answers[].kind |
string, one of rating, text, choice, yesno |
yes | |
feedback[].answers[].label |
string | yes | The question as it was asked |
feedback[].answers[].value |
integer or string or boolean | yes | Stars for rating, the text, the option, or true or false for yesno |
count |
integer | yes | The number of answers listed |
average |
number or null | yes | The mean of the listed answers' stars; null when none has stars |
helpers |
array of object | yes | Every helper with answers, by name |
helpers[].id |
integer | yes | |
helpers[].name |
string | yes |
| Error | When |
|---|---|
| 400 | helper is no account id (code invalid_helper) |
| 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 |
Show the feedback form the quick support app asks after a session.
Needs server.config. neodesk support feedback-form calls it.
200: Done (application/json)
| 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 |
Replace the feedback form after quick support: on or off and the questions.
Replaces the whole form. Switched on without questions, it starts with two: a required rating and a long text, in the request's language. Writes an audit entry.
Needs server.config. neodesk support feedback-form-set calls it.
Request body, application/json:
| Field | Type | Required | What it is |
|---|---|---|---|
enabled |
boolean | yes | |
questions |
array of QuickSupportFeedbackQuestion | at most 10 items |
200: Done (application/json)
| Error | When |
|---|---|
| 400 | The body is not valid, or no enabled |
| 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 |
List quick support sessions.
Lists the sessions the account made that are not over: waiting, opened, asking or allowed. Newest first.
Needs device.connect. neodesk support list calls it.
200: Done (application/json)
| Field | Type | Required |
|---|---|---|
success |
true |
yes |
sessions |
array of QuickSupportSession | 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 |
Start a quick support session: a code the customer types in.
Makes a code that works for one hour and one use, and its session. The code is in this answer only. The folder must be one the account may put devices into.
Needs device.connect. neodesk support create calls it.
Request body, application/json:
| Field | Type | What it is |
|---|---|---|
name |
string | Who the session is for: 64 characters at most, without < > or line breaks; at most 64 characters |
email |
string (email) | Their address, 254 characters at most; at most 254 characters |
folder_id |
integer or null | The folder the computer goes into; 0 or null for none; at least 0 |
send_email |
boolean | Mail the link to email now; default false |
201: Created (application/json)
| Field | Type | Required | What it is |
|---|---|---|---|
success |
true |
yes | |
session |
QuickSupportSession | yes | |
code |
string | yes | The code without separators, in capitals |
display_code |
string | yes | The code as people read it, like ABCD-EF23 |
link |
string | yes | The page the person opens |
deep_link |
string | yes | The link that opens the quick support app directly |
mailed |
boolean | yes | |
mail_error |
string | Why the mail did not go out: smtp_not_configured or mail_failed; left out otherwise |
| Error | When |
|---|---|
| 400 | The body is not valid (code invalid_body, invalid_name, invalid_email or invalid_folder) |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account may not do this, or may not put devices into the folder (code folder_forbidden) |
| 409 | The account has too many open codes (code too_many_codes) |
| 502 | The server API could not make the code (code server_error) |
Show a quick support session.
Only the account that made the session sees it.
Needs device.connect. neodesk support get calls it.
| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
id |
path | string | yes | The session's id: 16 hex digits (see support list) |
200: Done (application/json)
| Field | Type | Required |
|---|---|---|
success |
true |
yes |
session |
QuickSupportSession | 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 |
| 404 | There is no such session, or another account made it (code not_found) |
End a quick support session.
Ends the session. A waiting session's code is revoked too. A session that is over already answers as it is.
Needs device.connect. neodesk support end calls it. It cannot be undone.
| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
id |
path | string | yes | The session's id: 16 hex digits (see support list) |
200: Done (application/json)
| Field | Type | Required |
|---|---|---|
success |
true |
yes |
session |
QuickSupportSession | 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 |
| 404 | There is no such session, or another account made it (code not_found) |
Mail the session link. Give the code you got from support create.
The server keeps only a hash of the code, so the body carries the code that support create answered.
Needs device.connect. neodesk support mail calls it.
| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
id |
path | string | yes | The session's id: 16 hex digits (see support list) |
Request body, application/json:
| Field | Type | Required | What it is |
|---|---|---|---|
code |
string | yes | The code support create answered |
to |
string (email) | yes | One address; at most 254 characters |
lang |
string | The language of the mail, like de; left out: the sender's |
200: Done (application/json)
| Field | Type | Required |
|---|---|---|
success |
true |
yes |
sent |
true |
yes |
| Error | When |
|---|---|
| 400 | The body is not valid or to is no address (code invalid_body or invalid_email) |
| 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 session, another account made it, or the code is not this session's open code |
| 409 | The console has no mail server set up (code smtp_not_configured) |
| 502 | The mail server did not take the mail (code mail_failed) |
Take the one-time password of an allowed session.
Answers the session password the quick support app handed over, once: a second call answers 409.
Needs device.connect. neodesk support password calls it.
| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
id |
path | string | yes | The session's id: 16 hex digits (see support list) |
200: Done (application/json)
| Field | Type | Required |
|---|---|---|
success |
true |
yes |
password |
string | 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 |
| 404 | There is no such session, or another account made it (code not_found) |
| 409 | The app has not handed over a password, or it was taken already (code no_password) |