Doku durchsuchen
Menü
Geändert am Auf GitHub bearbeiten

Server-API: branding

Als Markdown kopieren

Diese Routen liegen auf der Server-API, Port 21114 (21121 in Docker). Sie nehmen einen API-Schlüssel in X-API-Key oder ein Anmelde-Token; siehe Die HTTP-API. Die Beschreibungen stehen auf Englisch, wie in der OpenAPI-Beschreibung.

The branding NeoDesk Desktop and RustDesk clients get from the server.

GET /api/branding

Show the branding desktop clients apply.

Answers anyone, limited per address. In NeoDesk mode it answers NeoDesk's own branding with revision "0", whatever is stored. Answers with an ETag and Cache-Control: private, max-age=60; a request whose If-None-Match is that ETag gets 304.

On the server API, port 21114.

200: Done (application/json)

ClientBranding.

304: The branding is the one the client has

Error When
429 Too many requests from this address

POST /api/branding

Change the client branding.

The body may be up to 2 MB. Every save sets a new revision, the time in Unix milliseconds, and goes to the audit log. The answer is the branding as it is stored now.

On the server API, port 21114. Only for the role admin.

Request body, application/json:

ClientBrandingChange.

200: Done (application/json)

ClientBrandingSaved.

Error When
400 A value is not valid. The answer to an accent color, a logo or a body that is no JSON is plain text, to an email or website {"error": "..."}
401 No credential, or one that is not valid
403 The credential's role lacks the permission

GET /api/branding/stored

Show the client branding as it is stored.

Whatever the branding mode: what the console's Client Branding page edits.

On the server API, port 21114. Only for the role admin.

200: Done (application/json)

ClientBranding.

Error When
401 No credential, or one that is not valid
403 The credential's role lacks the permission

Durchsucht Seiten, Abschnitte, Befehle und Einstellungen.