Doku durchsuchen
Menü
Geändert am Auf GitHub bearbeiten

Konsole: client-branding

Als Markdown kopieren

Diese 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.

Name, logo and links the desktop clients show.

GET /api/client-branding

Show the name, logo and links the desktop clients show.

The client branding as the server API stores it, which is what the page edits. In NeoDesk mode the clients get NeoDesk's own branding instead.

Needs branding.edit. neodesk client-branding show calls it.

200: Done (application/json)

Field Type Required
success true yes
data ClientBranding 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
502 The server API could not be reached or refused the call

POST /api/client-branding

Change the name, logo and links the desktop clients show.

The console sends company_name, phone, email, website, accent_color, support_contact and colors to the server API as given, clear_logo when it is true, and otherwise logo when there is one. A server whose client branding gets a name, contact or logo of its own switches to custom mode. The server API refusing a value is answered with 502 and its message.

Needs branding.edit. neodesk client-branding set calls it.

Request body, application/json:

ClientBrandingChange.

200: Done (application/json)

Field Type Required
success true yes
data ClientBrandingSaved yes
revision string
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
502 The server API could not be reached or refused a value, such as "accent_color must be #RGB or #RRGGBB"

Durchsucht Seiten, Abschnitte, Befehle und Einstellungen.